From c096e03fe1ffd5c1f80e0cbccc994d1d75001bfa Mon Sep 17 00:00:00 2001 From: ayoayco Date: Fri, 25 Apr 2025 22:11:15 +0200 Subject: [PATCH] feat: show followed tag badge --- components/status/StatusCard.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 33a4d177..7967dfc9 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -61,6 +61,10 @@ const collapseRebloggedBy = computed(() => rebloggedBy.value?.id === status.valu const isDM = computed(() => status.value.visibility === 'direct') const isPinned = computed(() => status.value.pinned) +// limit 0 should get all w/o pagination, but might need checking +const followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })).map(tag => tag.name) +const statusTagsFollowed = computed(() => status.value.tags.filter(tag => followedTags.includes(tag.name)).map(tag => tag.name)) + const showUpperBorder = computed(() => newer && !directReply.value) const showReplyTo = computed(() => !replyToMain.value && !directReply.value) @@ -73,6 +77,20 @@ const forceShow = ref(false)
+ +
+
+
+ + {{ statusTagsFollowed[0] }} +
+
+