diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index 69b0438f..a3d0eca8 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -4,6 +4,13 @@ import type { mastodon } from 'masto' const { notification } = defineProps<{ notification: mastodon.v1.Notification }>() + +const { t } = useI18n() + +// well-known emoji reactions types Elk does not support yet +const unsupportedEmojiReactionTypes = ['pleroma:emoji_reaction', 'reaction'] +if (unsupportedEmojiReactionTypes.includes(notification.type)) + console.warn(`[DEV] ${t('notification.missing_type')} '${notification.type}' (notification.id: ${notification.id})`)