Add live search to autocomplete and only highlight known handles
This commit is contained in:
parent
859087f21d
commit
2b98714548
6 changed files with 138 additions and 40 deletions
|
@ -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 || ''},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue