Skip to content

Commit

Permalink
Proxy search bugfix (bluesky-social#1679)
Browse files Browse the repository at this point in the history
proxy search bugfix
  • Loading branch information
dholms authored Sep 26, 2023
1 parent 65eb3c8 commit bbb140d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/bsky/src/api/app/bsky/actor/searchActors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function (server: Server, ctx: AppContext) {
const SKIP = []
const filtered = results.flatMap((did) => {
const actor = actors[did]
if (!actor) return SKIP
if (actor.viewer?.blocking || actor.viewer?.blockedBy) return SKIP
return actor
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function (server: Server, ctx: AppContext) {
const SKIP = []
const filtered = results.flatMap((did) => {
const actor = actors[did]
if (!actor) return SKIP
if (actor.viewer?.blocking || actor.viewer?.blockedBy) return SKIP
return actor
})
Expand Down

0 comments on commit bbb140d

Please sign in to comment.