From 95a875f47bfbb4ee9b2bec01a4dcb5025398f6e1 Mon Sep 17 00:00:00 2001 From: Ivan Demchuk Date: Sun, 8 Jan 2023 15:34:53 +0200 Subject: [PATCH] fix: exclude unreviewed hashtags from autocomplete (#873) --- composables/tiptap/suggestion.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composables/tiptap/suggestion.ts b/composables/tiptap/suggestion.ts index 706585a1..4f185540 100644 --- a/composables/tiptap/suggestion.ts +++ b/composables/tiptap/suggestion.ts @@ -29,7 +29,13 @@ export const HashtagSuggestion: Partial = { 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