about summary refs log tree commit diff
path: root/src/state/lib/api.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-17 14:35:12 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-17 14:35:12 -0600
commit2b98714548d585ff14dd09252233144f48b5f4b7 (patch)
treef200f39732aad5f7da3b554f02d5f78ce96bee12 /src/state/lib/api.ts
parent859087f21d148d52d707b0057458e7dd2cbbea0a (diff)
downloadvoidsky-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.ts3
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 || ''},
     {