forked from Mirrors/elk
refactor: add return type
This commit is contained in:
parent
979c97306b
commit
aa6b603eca
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ const { paginator } = defineProps<{
|
||||||
paginator: Paginator<mastodon.v1.Conversation[], mastodon.DefaultPaginationParams>
|
paginator: Paginator<mastodon.v1.Conversation[], mastodon.DefaultPaginationParams>
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
function preprocess(items: mastodon.v1.Conversation[]) {
|
function preprocess(items: mastodon.v1.Conversation[]): mastodon.v1.Conversation[] {
|
||||||
return items.filter(items => !items.lastStatus?.filtered?.find(
|
return items.filter(items => !items.lastStatus?.filtered?.find(
|
||||||
filter => filter.filter.filterAction === 'hide' && filter.filter.context.includes('thread'),
|
filter => filter.filter.filterAction === 'hide' && filter.filter.context.includes('thread'),
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue