commit f8fa716
default
·
2024-07-30 16:27:09 +0000 UTC
parent 21c9245
Notify blocks.
2 files changed,
+10,
-1
M
html.c
+9,
-0
1@@ -2134,6 +2134,15 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
2
3 enqueue_output_by_actor(snac, rsp, actor, 0);
4 }
5+ else
6+ if (strcmp(type, "Block") == 0) { /** **/
7+ snac_log(snac, xs_fmt("'Block' received from %s", actor));
8+
9+ /* should we MUTE the actor back? */
10+ /* mute(snac, actor); */
11+
12+ do_notify = 1;
13+ }
14 else {
15 srv_archive_error("unsupported_type", "unsupported_type", req, msg);
16
M
html.c
+1,
-1
1@@ -2525,7 +2525,7 @@ xs_str *html_notifications(snac *user, int skip, int show)
2 xs_html_attr("title", date),
3 xs_html_text(s_date))));
4
5- if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) {
6+ if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0 || strcmp(type, "Block") == 0) {
7 xs_html_add(entry,
8 xs_html_tag("div",
9 xs_html_attr("class", "snac-post"),