diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 14:35:12 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 14:35:12 -0600 |
commit | 2b98714548d585ff14dd09252233144f48b5f4b7 (patch) | |
tree | f200f39732aad5f7da3b554f02d5f78ce96bee12 /src/state/lib/api.ts | |
parent | 859087f21d148d52d707b0057458e7dd2cbbea0a (diff) | |
download | voidsky-2b98714548d585ff14dd09252233144f48b5f4b7.tar.zst |
Add live search to autocomplete and only highlight known handles
Diffstat (limited to 'src/state/lib/api.ts')
-rw-r--r-- | src/state/lib/api.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<string>, ) { 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 || ''}, { |