diff --git a/outbox/forward.go b/outbox/forward.go index cd3a990..1e4be7f 100644 --- a/outbox/forward.go +++ b/outbox/forward.go @@ -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 } diff --git a/test/community_test.go b/test/community_test.go index 03ea447..671c1d7 100644 --- a/test/community_test.go +++ b/test/community_test.go @@ -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) }