[backend/queue] Also deliver note updates to relays

This commit is contained in:
Laura Hausmann 2024-11-03 19:40:35 +01:00
parent 925ba3c751
commit 1b885e6ed4
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -93,7 +93,7 @@ public class PreDeliverQueue(int parallelism)
// @formatter:on
}
if (activity is ASCreate or ASDelete { Object: ASNote })
if (activity is ASCreate or ASUpdate { Object: ASNote } or ASDelete { Object: ASNote })
{
if (activity.Object is not ASNote n) return;
if (!n.To?.Any(p => p.Id == $"{Constants.ActivityStreamsNs}#Public") ?? true) return;