mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Drop announces from limited users.
This commit is contained in:
parent
1763e3347e
commit
28adb6c850
1 changed files with 3 additions and 0 deletions
|
@ -1566,6 +1566,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
||||||
|
|
||||||
timeline_request(snac, &object, &wrk, 0);
|
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))) {
|
if (valid_status(object_get(object, &a_msg))) {
|
||||||
char *who = xs_dict_get(a_msg, "attributedTo");
|
char *who = xs_dict_get(a_msg, "attributedTo");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue