Drop announces from limited users.

This commit is contained in:
default 2023-08-06 18:42:47 +02:00
parent 1763e3347e
commit 28adb6c850

View file

@ -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");