diff options
author | default <nobody@localhost> | 2023-08-06 18:42:47 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-06 18:42:47 +0200 |
commit | 28adb6c850cb13195e7324f36c0b04c0256ee328 (patch) | |
tree | 01fd4be81a4f57d0cc3ca01dc2711fe3d868099d | |
parent | 1763e3347ed2921d9f8cd774e612578351e0719e (diff) |
Drop announces from limited users.
-rw-r--r-- | activitypub.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |