fix: fetch for followed tags needs authorized session (#3277)

This commit is contained in:
ayo 2025-04-28 10:32:05 +02:00 committed by GitHub
parent ec594410e4
commit 81675930eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 20 additions and 5 deletions

View file

@ -25,7 +25,7 @@ const showOriginSite = computed(() =>
function getFollowedTag(status: mastodon.v1.Status): string | null {
const followedTagNames = followedTags.map(tag => tag.name)
const followedStatusTags = status.tags.filter(tag => followedTagNames.includes(tag.name))
return followedStatusTags.length ? followedStatusTags[0]?.name : null
return followedStatusTags.length > 0 ? followedStatusTags[0]?.name : null
}
</script>