summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/html.c b/html.c
index c862195..5b88c79 100644
--- a/html.c
+++ b/html.c
@@ -4244,17 +4244,14 @@ xs_str *html_notifications(snac *user, int skip, int show)
4244 xs *label_sanitized = sanitize(type); 4244 xs *label_sanitized = sanitize(type);
4245 const char *label = label_sanitized; 4245 const char *label = label_sanitized;
4246 4246
4247 if (strcmp(type, "Create") == 0) { 4247 if (strcmp(type, "Create") == 0)
4248 label = L("Mention"); 4248 label = L("Mention");
4249 }
4250 else 4249 else
4251 if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) { 4250 if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0)
4252 label = L("Finished poll"); 4251 label = L("Finished poll");
4253 }
4254 else 4252 else
4255 if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") == 0) { 4253 if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") == 0)
4256 label = L("Unfollow"); 4254 label = L("Unfollow");
4257 }
4258 else 4255 else
4259 if (strcmp(type, "EmojiReact") == 0 || strcmp(type, "Like") == 0) { 4256 if (strcmp(type, "EmojiReact") == 0 || strcmp(type, "Like") == 0) {
4260 const char *content = xs_dict_get_path(noti, "msg.content"); 4257 const char *content = xs_dict_get_path(noti, "msg.content");
@@ -4277,11 +4274,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
4277 } 4274 }
4278 } 4275 }
4279 else 4276 else
4280 if (strcmp(type, "Follow") == 0) { 4277 if (strcmp(type, "Follow") == 0 && pending_check(user, actor_id))
4281 if (pending_check(user, actor_id)) { 4278 label = L("Follow Request");
4282 label = L("Follow Request");
4283 }
4284 }
4285 4279
4286 xs *s_date = html_date_label(user, date); 4280 xs *s_date = html_date_label(user, date);
4287 4281