diff options
| author | 2023-08-06 19:04:30 +0200 | |
|---|---|---|
| committer | 2023-08-06 19:04:30 +0200 | |
| commit | 106791ff6ba11c256b42a69c1ff052da3e8413fe (patch) | |
| tree | 7e06feb4704ac0bdd65640729e923a67621d9aaf /activitypub.c | |
| parent | Drop announces from limited users. (diff) | |
| download | snac2-106791ff6ba11c256b42a69c1ff052da3e8413fe.tar.gz snac2-106791ff6ba11c256b42a69c1ff052da3e8413fe.tar.xz snac2-106791ff6ba11c256b42a69c1ff052da3e8413fe.zip | |
Added command-line interface for limit/unlimit users.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index dc9ec95..194511e 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1570,7 +1570,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) | |||
| 1570 | snac_log(snac, xs_fmt("dropped 'Announce' from limited actor %s", actor)); | 1570 | snac_log(snac, xs_fmt("dropped 'Announce' from limited actor %s", actor)); |
| 1571 | else | 1571 | else |
| 1572 | if (valid_status(object_get(object, &a_msg))) { | 1572 | if (valid_status(object_get(object, &a_msg))) { |
| 1573 | char *who = xs_dict_get(a_msg, "attributedTo"); | 1573 | const char *who = xs_dict_get(a_msg, "attributedTo"); |
| 1574 | 1574 | ||
| 1575 | if (who && !is_muted(snac, who)) { | 1575 | if (who && !is_muted(snac, who)) { |
| 1576 | /* bring the actor */ | 1576 | /* bring the actor */ |