fix: fetch for followed tags needs authorized session (#3277)
This commit is contained in:
parent
ec594410e4
commit
81675930eb
5 changed files with 20 additions and 5 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue