summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-07-04 14:23:12 +0200
committerGravatar default2023-07-04 14:23:12 +0200
commit78b468f013cc2624a4b9044393eb2c86556c98b7 (patch)
tree356b5fbe8a167b4c309302a56af17bff4de310b6
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-78b468f013cc2624a4b9044393eb2c86556c98b7.tar.gz
snac2-78b468f013cc2624a4b9044393eb2c86556c98b7.tar.xz
snac2-78b468f013cc2624a4b9044393eb2c86556c98b7.zip
More unfollow notification tweaks.
-rw-r--r--activitypub.c5
-rw-r--r--html.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index de7de6a..d0ef866 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -686,8 +686,11 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
686 enqueue_telegram(body, bot, chat_id); 686 enqueue_telegram(body, bot, chat_id);
687 687
688 /* finally, store it in the notification folder */ 688 /* finally, store it in the notification folder */
689 if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) 689 if (strcmp(type, "Follow") == 0)
690 objid = id; 690 objid = id;
691 else
692 if (strcmp(utype, "Follow") == 0)
693 objid = actor;
691 694
692 notify_add(snac, type, utype, actor, objid != NULL ? objid : id); 695 notify_add(snac, type, utype, actor, objid != NULL ? objid : id);
693} 696}
diff --git a/html.c b/html.c
index ce7f511..c9d6edd 100644
--- a/html.c
+++ b/html.c
@@ -1510,7 +1510,7 @@ xs_str *html_notifications(snac *snac)
1510 if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) { 1510 if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) {
1511 s = xs_str_cat(s, "<div class=\"snac-post\">\n"); 1511 s = xs_str_cat(s, "<div class=\"snac-post\">\n");
1512 1512
1513 s = html_msg_icon(snac, s, obj); 1513 s = html_actor_icon(s, actor, NULL, NULL, NULL, 0);
1514 1514
1515 s = xs_str_cat(s, "</div>\n"); 1515 s = xs_str_cat(s, "</div>\n");
1516 } 1516 }