diff options
author | default <nobody@localhost> | 2024-03-11 06:00:21 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-03-11 06:00:21 +0100 |
commit | 60c2a50ed9a0efc8bbbdbeb48b4a96a1eb80f946 (patch) | |
tree | 70e577d7064b3f1f52138d984e0a693d8e161b6c /activitypub.c | |
parent | 951e6b23151d298d9babeec81bc9926c11bdb3b3 (diff) |
New function content_check().
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 1976012..22a12fa 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1921,10 +1921,15 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) snac_debug(snac, 0, xs_fmt("dropped reply %s to hidden post %s", id, in_reply_to)); } else { + if (content_check("filter_reject.txt", object)) { + snac_log(snac, xs_fmt("rejected by content %s", id)); + return 1; + } + timeline_request(snac, &in_reply_to, &wrk, 0); if (timeline_add(snac, id, object)) { - snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); + snac_log(snac, xs_fmt("new '%s' %s %s", utype, actor, id)); do_notify = 1; } |