diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index 9b7b720e..20d3aa4f 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -51,7 +51,10 @@ const timeAgo = useTimeAgo(() => notification.createdAt, timeAgoOptions)
- {{ $t('notification.followed_you') }}・{{ timeAgo }} + {{ $t('notification.followed_you') }} +
notification.createdAt, timeAgoOptions) :account="notification.account" text-purple me-1 font-bold line-clamp-1 ws-pre-wrap break-all /> - {{ $t("notification.signed_up") }}・{{ timeAgo }} + {{ $t("notification.signed_up") }} + + @@ -97,7 +104,10 @@ const timeAgo = useTimeAgo(() => notification.createdAt, timeAgoOptions) text-primary me-1 font-bold line-clamp-1 ws-pre-wrap break-all /> - {{ $t('notification.request_to_follow') }}・{{ timeAgo }} + {{ $t('notification.request_to_follow') }} + @@ -111,7 +121,10 @@ const timeAgo = useTimeAgo(() => notification.createdAt, timeAgoOptions)
- {{ $t('notification.update_status') }}・{{ timeAgo }} + {{ $t('notification.update_status') }} +
diff --git a/components/notification/NotificationGroupedFollow.vue b/components/notification/NotificationGroupedFollow.vue index 59f7f912..ab98bb17 100644 --- a/components/notification/NotificationGroupedFollow.vue +++ b/components/notification/NotificationGroupedFollow.vue @@ -16,7 +16,8 @@ const lang = computed(() => { }) const timeAgoOptions = useTimeAgoOptions(true) -const timeAgo = useTimeAgo(() => follows.value[0].createdAt, timeAgoOptions) +const timeAgoCreatedAt = computed(() => follows.value[0].createdAt) +const timeAgo = useTimeAgo(() => timeAgoCreatedAt.value, timeAgoOptions) diff --git a/components/notification/NotificationGroupedLikes.vue b/components/notification/NotificationGroupedLikes.vue index c29692df..609ca31d 100644 --- a/components/notification/NotificationGroupedLikes.vue +++ b/components/notification/NotificationGroupedLikes.vue @@ -10,8 +10,10 @@ const reblogs = computed(() => group.likes.filter(i => i.reblog)) const likes = computed(() => group.likes.filter(i => i.favourite && !i.reblog)) const timeAgoOptions = useTimeAgoOptions(true) -const reblogsTimeAgo = useTimeAgo(() => reblogs.value[0].reblog?.createdAt ?? '', timeAgoOptions) -const likesTimeAgo = useTimeAgo(() => likes.value[0].favourite?.createdAt ?? '', timeAgoOptions) +const reblogsTimeAgoCreatedAt = computed(() => reblogs.value[0].reblog?.createdAt) +const reblogsTimeAgo = useTimeAgo(() => reblogsTimeAgoCreatedAt.value ?? '', timeAgoOptions) +const likesTimeAgoCreatedAt = computed(() => likes.value[0].favourite?.createdAt) +const likesTimeAgo = useTimeAgo(() => likesTimeAgoCreatedAt.value ?? '', timeAgoOptions)
- {{ $t('notification.reblogged_post') }}・{{ reblogsTimeAgo }} + {{ $t('notification.reblogged_post') }} +
@@ -41,7 +46,10 @@ const likesTimeAgo = useTimeAgo(() => likes.value[0].favourite?.createdAt ?? '',
- {{ $t('notification.favourited_post') }} ・{{ likesTimeAgo }} + {{ $t('notification.favourited_post') }} +