Skip to content

Commit

Permalink
forward Update and Delete activites
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Dec 21, 2024
1 parent d6287ea commit 7d926bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outbox/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func forwardToGroup[T ap.RawActivity](ctx context.Context, domain string, tx *sq
return true, err
}

if activity.Type != ap.Create {
if activity.Type != ap.Create && activity.Type != ap.Update && activity.Type != ap.Delete {
return true, nil
}

Expand Down
2 changes: 1 addition & 1 deletion test/community_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,5 +708,5 @@ func TestCommunity_UnknownEditedReplyInThread(t *testing.T) {

var shared int
assert.NoError(server.db.QueryRow(`select count(*) from outbox where activity->>'$.type' = 'Announce' and activity->>'$.object' = 'https://127.0.0.1/note/1' and sender = ?`, server.Alice.ID).Scan(&shared))
assert.Equal(0, shared)
assert.Equal(1, shared)
}

0 comments on commit 7d926bd

Please sign in to comment.