Skip to content

Commit

Permalink
Fix viewer block reference (#2758)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Aug 28, 2024
1 parent e49e05c commit ea6cfc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bsky/src/api/app/bsky/feed/getQuotes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AtUri } from '@atproto/syntax'
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { createPipeline } from '../../../../pipeline'
Expand Down Expand Up @@ -73,7 +74,8 @@ const noBlocks = (inputs: {
const { ctx, skeleton, hydration } = inputs
skeleton.uris = skeleton.uris.filter((uri) => {
const embedBlock = hydration.postBlocks?.get(uri)?.embed
return !ctx.views.viewerBlockExists(uri, hydration) && !embedBlock
const authorDid = new AtUri(uri).hostname
return !ctx.views.viewerBlockExists(authorDid, hydration) && !embedBlock
})
return skeleton
}
Expand Down

0 comments on commit ea6cfc3

Please sign in to comment.