mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: exclude unreviewed hashtags from autocomplete (#873)
This commit is contained in:
parent
7e17bdfd83
commit
95a875f47b
1 changed files with 7 additions and 1 deletions
|
@ -29,7 +29,13 @@ export const HashtagSuggestion: Partial<SuggestionOptions> = {
|
|||
if (query.length === 0)
|
||||
return []
|
||||
|
||||
const paginator = useMasto().v2.search({ q: query, type: 'hashtags', limit: 25, resolve: true })
|
||||
const paginator = useMasto().v2.search({
|
||||
q: query,
|
||||
type: 'hashtags',
|
||||
limit: 25,
|
||||
resolve: false,
|
||||
excludeUnreviewed: true,
|
||||
})
|
||||
const results = await paginator.next()
|
||||
|
||||
return results.value.hashtags
|
||||
|
|
Loading…
Reference in a new issue