diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-07 17:20:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 17:20:17 -0800 |
commit | 7b5033118895448ae36c0ac2d76683ecd838f5e2 (patch) | |
tree | a9561eb741de580106d182460fc0ba4a5e825a68 /src/state/cache/profile-shadow.ts | |
parent | 448a403c81367c46b1323c4b545e02aaea0b92da (diff) | |
download | voidsky-7b5033118895448ae36c0ac2d76683ecd838f5e2.tar.zst |
Various search fixes (#2145)
* Add posts-search query to shadow cache search * Update user search to use correct endpoint * Fix: include cursor in post search
Diffstat (limited to 'src/state/cache/profile-shadow.ts')
-rw-r--r-- | src/state/cache/profile-shadow.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/cache/profile-shadow.ts b/src/state/cache/profile-shadow.ts index f85e1ad8d..79a1f228e 100644 --- a/src/state/cache/profile-shadow.ts +++ b/src/state/cache/profile-shadow.ts @@ -11,6 +11,7 @@ import {findAllProfilesInQueryData as findAllProfilesInProfileQueryData} from '. import {findAllProfilesInQueryData as findAllProfilesInProfileFollowersQueryData} from '../queries/profile-followers' import {findAllProfilesInQueryData as findAllProfilesInProfileFollowsQueryData} from '../queries/profile-follows' import {findAllProfilesInQueryData as findAllProfilesInSuggestedFollowsQueryData} from '../queries/suggested-follows' +import {findAllProfilesInQueryData as findAllProfilesInActorSearchQueryData} from '../queries/actor-search' import {Shadow, castAsShadow} from './types' import {queryClient} from 'lib/react-query' export type {Shadow} from './types' @@ -98,4 +99,5 @@ function* findProfilesInCache(did: string): Generator<ProfileView, void> { yield* findAllProfilesInProfileFollowersQueryData(queryClient, did) yield* findAllProfilesInProfileFollowsQueryData(queryClient, did) yield* findAllProfilesInSuggestedFollowsQueryData(queryClient, did) + yield* findAllProfilesInActorSearchQueryData(queryClient, did) } |