commit 78b468f
default
·
2023-07-04 12:23:12 +0000 UTC
parent 51c3fc9
More unfollow notification tweaks.
2 files changed,
+5,
-2
M
html.c
+4,
-1
1@@ -686,8 +686,11 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
2 enqueue_telegram(body, bot, chat_id);
3
4 /* finally, store it in the notification folder */
5- if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0)
6+ if (strcmp(type, "Follow") == 0)
7 objid = id;
8+ else
9+ if (strcmp(utype, "Follow") == 0)
10+ objid = actor;
11
12 notify_add(snac, type, utype, actor, objid != NULL ? objid : id);
13 }
M
html.c
+1,
-1
1@@ -1510,7 +1510,7 @@ xs_str *html_notifications(snac *snac)
2 if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) {
3 s = xs_str_cat(s, "<div class=\"snac-post\">\n");
4
5- s = html_msg_icon(snac, s, obj);
6+ s = html_actor_icon(s, actor, NULL, NULL, NULL, 0);
7
8 s = xs_str_cat(s, "</div>\n");
9 }