From 28adb6c850cb13195e7324f36c0b04c0256ee328 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 6 Aug 2023 18:42:47 +0200 Subject: [PATCH] Drop announces from limited users. --- activitypub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activitypub.c b/activitypub.c index 9a2704d..dc9ec95 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1566,6 +1566,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) timeline_request(snac, &object, &wrk, 0); + if (is_limited(snac, actor)) + snac_log(snac, xs_fmt("dropped 'Announce' from limited actor %s", actor)); + else if (valid_status(object_get(object, &a_msg))) { char *who = xs_dict_get(a_msg, "attributedTo");