From 2b98714548d585ff14dd09252233144f48b5f4b7 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 17 Nov 2022 14:35:12 -0600 Subject: Add live search to autocomplete and only highlight known handles --- src/state/lib/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/state/lib/api.ts') diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index ba2fcd3bb..5f147e01f 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -20,6 +20,7 @@ export async function post( store: RootStoreModel, text: string, replyTo?: Post.PostRef, + knownHandles?: Set, ) { let reply if (replyTo) { @@ -39,7 +40,7 @@ export async function post( } } } - const entities = extractEntities(text) + const entities = extractEntities(text, knownHandles) return await store.api.app.bsky.feed.post.create( {did: store.me.did || ''}, { -- cgit 1.4.1