mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
More tweaks regarding shared inboxes.
This commit is contained in:
parent
5e2f4e9902
commit
8800ed3892
1 changed files with 6 additions and 1 deletions
|
@ -1670,8 +1670,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
}
|
||||
else
|
||||
if (strcmp(type, "Create") == 0) { /** **/
|
||||
if (is_muted(snac, actor))
|
||||
if (is_muted(snac, actor)) {
|
||||
snac_log(snac, xs_fmt("ignored 'Create' + '%s' from muted actor %s", utype, actor));
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (strcmp(utype, "Note") == 0) { /** **/
|
||||
char *id = xs_dict_get(object, "id");
|
||||
|
@ -1751,6 +1753,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
if (xs_type(object) == XSTYPE_DICT)
|
||||
object = xs_dict_get(object, "id");
|
||||
|
||||
if (is_muted(snac, actor) && !xs_startswith(object, snac->actor))
|
||||
snac_log(snac, xs_fmt("dropped 'Announce' from muted actor %s", actor));
|
||||
else
|
||||
if (is_limited(snac, actor) && !xs_startswith(object, snac->actor))
|
||||
snac_log(snac, xs_fmt("dropped 'Announce' from limited actor %s", actor));
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue