@@ -33,6 +33,9 @@ const unsupportedEmojiReactionTypes = ['pleroma:emoji_reaction', 'reaction']
3333if (unsupportedEmojiReactionTypes .includes (notification .type ) || ! supportedNotificationTypes .includes (notification .type )) {
3434 console .warn (` [DEV] ${t (' notification.missing_type' )} '${notification .type }' (notification.id: ${notification .id }) ` )
3535}
36+
37+ const timeAgoOptions = useTimeAgoOptions (true )
38+ const timeAgo = useTimeAgo (() => notification .createdAt , timeAgoOptions )
3639 </script >
3740
3841<template >
@@ -48,7 +51,7 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif
4851 <div i-ri-user-3-line text-xl me-3 color-blue />
4952 <AccountDisplayName :account =" notification.account" text-primary me-1 font-bold line-clamp-1 ws-pre-wrap break-all />
5053 <span ws-nowrap >
51- {{ $t('notification.followed_you') }}
54+ {{ $t('notification.followed_you') }}・{{ timeAgo }}
5255 </span >
5356 </div >
5457 <AccountBigCard
@@ -65,7 +68,7 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif
6568 :account =" notification.account"
6669 text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all
6770 />
68- <span >{{ $t("notification.signed_up") }}</span >
71+ <span >{{ $t("notification.signed_up") }}・{{ timeAgo }} </span >
6972 </div >
7073 </NuxtLink >
7174 </template >
@@ -94,7 +97,7 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif
9497 text-primary me-1 font-bold line-clamp-1 ws-pre-wrap break-all
9598 />
9699 <span me-1 ws-nowrap >
97- {{ $t('notification.request_to_follow') }}
100+ {{ $t('notification.request_to_follow') }}・{{ timeAgo }}
98101 </span >
99102 </div >
100103 <AccountCard p =" s-2 e-4 b-2" hover-card :account =" notification.account" >
@@ -108,7 +111,7 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif
108111 <div i-ri:edit-2-fill text-xl me-1 text-secondary />
109112 <AccountInlineInfo :account =" notification.account" me1 />
110113 <span ws-nowrap >
111- {{ $t('notification.update_status') }}
114+ {{ $t('notification.update_status') }}・{{ timeAgo }}
112115 </span >
113116 </div >
114117 </template >
0 commit comments