diff options
| author | 2023-07-04 14:23:12 +0200 | |
|---|---|---|
| committer | 2023-07-04 14:23:12 +0200 | |
| commit | 78b468f013cc2624a4b9044393eb2c86556c98b7 (patch) | |
| tree | 356b5fbe8a167b4c309302a56af17bff4de310b6 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-78b468f013cc2624a4b9044393eb2c86556c98b7.tar.gz snac2-78b468f013cc2624a4b9044393eb2c86556c98b7.tar.xz snac2-78b468f013cc2624a4b9044393eb2c86556c98b7.zip | |
More unfollow notification tweaks.
| -rw-r--r-- | activitypub.c | 5 | ||||
| -rw-r--r-- | html.c | 2 |
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 | } |
| @@ -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 | } |