fix: exclude unreviewed hashtags from autocomplete (#873)

This commit is contained in:
Ivan Demchuk 2023-01-08 15:34:53 +02:00 committed by GitHub
parent 7e17bdfd83
commit 95a875f47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,13 @@ export const HashtagSuggestion: Partial<SuggestionOptions> = {
if (query.length === 0) if (query.length === 0)
return [] 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() const results = await paginator.next()
return results.value.hashtags return results.value.hashtags