feat: show followed hashtag badge (#3273)

This commit is contained in:
ayo 2025-04-26 14:53:54 +02:00 committed by GitHub
parent b0f301843b
commit b82e85585c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 36 additions and 7 deletions

View file

@ -6,10 +6,12 @@ const stream = useStreaming(client => client.public.local.subscribe())
function reorderAndFilter(items: mastodon.v1.Status[]) {
return reorderedTimeline(items, 'public')
}
const followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 }))
</script>
<template>
<div>
<TimelinePaginator v-bind="{ paginator, stream }" :preprocess="reorderAndFilter" context="public" />
<TimelinePaginator :followed-tags="followedTags" v-bind="{ paginator, stream }" :preprocess="reorderAndFilter" context="public" />
</div>
</template>