From dd4076f49cfbdda9c142c695288e9893bbe63874 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Thu, 19 Dec 2024 13:19:20 +0900 Subject: [PATCH] feat: show pinned posts on individual account page (#2779) --- components/status/StatusCard.vue | 14 ++++++++++++++ locales/en.json | 1 + pages/[[server]]/@[account]/index/index.vue | 17 +++++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 1ec162cf..84ebcd41 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -62,6 +62,7 @@ const timeago = useTimeAgo(() => status.value.createdAt, timeAgoOptions) const isSelfReply = computed(() => status.value.inReplyToAccountId === status.value.account.id) const collapseRebloggedBy = computed(() => rebloggedBy.value?.id === status.value.account.id) const isDM = computed(() => status.value.visibility === 'direct') +const isPinned = computed(() => status.value.pinned) const showUpperBorder = computed(() => props.newer && !directReply.value) const showReplyTo = computed(() => !replyToMain.value && !directReply.value) @@ -75,6 +76,19 @@ const forceShow = ref(false)
+ +
+
+
+ {{ $t('status.pinned') }} +
+
+