From 8278719e13bc70dc12daabda3b8d6b1f010b17a8 Mon Sep 17 00:00:00 2001 From: grunfink Date: Sun, 27 Jul 2025 15:41:40 +0200 Subject: In msg_delete(), also add actors that liked or boosted as destinations. --- activitypub.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/activitypub.c b/activitypub.c index 100db67..f8b08fb 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1518,7 +1518,21 @@ xs_dict *msg_delete(snac *snac, const char *id) /* now create the Delete */ msg = msg_base(snac, "Delete", "@object", snac->actor, "@now", tomb); - msg = xs_dict_append(msg, "to", public_address); + xs *to = xs_list_new(); + xs *likes = object_likes(id); + xs *boosts = object_announces(id); + const char *v; + + /* add everybody */ + to = xs_list_append(to, public_address); + + /* add actors that liked or boosted this */ + xs_list_foreach(likes, v) + to = xs_list_append(to, v); + xs_list_foreach(boosts, v) + to = xs_list_append(to, v); + + msg = xs_dict_append(msg, "to", to); return msg; } -- cgit v1.2.3