summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-03-11 06:00:21 +0100
committerGravatar default2024-03-11 06:00:21 +0100
commit60c2a50ed9a0efc8bbbdbeb48b4a96a1eb80f946 (patch)
tree70e577d7064b3f1f52138d984e0a693d8e161b6c /activitypub.c
parentReplaced all xs_dict_iter() with xs_dict_next(). (diff)
downloadsnac2-60c2a50ed9a0efc8bbbdbeb48b4a96a1eb80f946.tar.gz
snac2-60c2a50ed9a0efc8bbbdbeb48b4a96a1eb80f946.tar.xz
snac2-60c2a50ed9a0efc8bbbdbeb48b4a96a1eb80f946.zip
New function content_check().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
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)
1921 snac_debug(snac, 0, xs_fmt("dropped reply %s to hidden post %s", id, in_reply_to)); 1921 snac_debug(snac, 0, xs_fmt("dropped reply %s to hidden post %s", id, in_reply_to));
1922 } 1922 }
1923 else { 1923 else {
1924 if (content_check("filter_reject.txt", object)) {
1925 snac_log(snac, xs_fmt("rejected by content %s", id));
1926 return 1;
1927 }
1928
1924 timeline_request(snac, &in_reply_to, &wrk, 0); 1929 timeline_request(snac, &in_reply_to, &wrk, 0);
1925 1930
1926 if (timeline_add(snac, id, object)) { 1931 if (timeline_add(snac, id, object)) {
1927 snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); 1932 snac_log(snac, xs_fmt("new '%s' %s %s", utype, actor, id));
1928 do_notify = 1; 1933 do_notify = 1;
1929 } 1934 }
1930 1935