Skip to content

Commit

Permalink
bsync: allow mutes on posts (bluesky-social#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms authored Jun 13, 2024
1 parent 438dc8e commit 1a62942
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/bsync/src/routes/add-mute-operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ const validMuteOp = (op: MuteOpInfo): MuteOpInfoValid => {
// all good
} else if (isValidAtUri(op.subject)) {
const uri = new AtUri(op.subject)
if (uri.collection !== 'app.bsky.graph.list') {
if (
uri.collection !== 'app.bsky.graph.list' &&
uri.collection !== 'app.bsky.feed.post'
) {
throw new ConnectError(
'subject aturis must reference a list record',
'subject aturis must reference a list or post record',
Code.InvalidArgument,
)
}
Expand Down

0 comments on commit 1a62942

Please sign in to comment.