diff options
| author | byte <gf3qyrmw7@mozmail.com> | 2026-01-25 01:00:01 +0000 |
|---|---|---|
| committer | byte <byte@noreply.codeberg.org> | 2026-01-25 16:56:04 +0100 |
| commit | c87c4dc26006efee36537466bdce9b2b454d1455 (patch) | |
| tree | 11eebc087899177af98e845f707322ab7bd461e5 /html.c | |
| parent | 56ca23c68c76fc1225f64b3d19e7c23954b2e8a3 (diff) | |
style
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -4244,17 +4244,14 @@ xs_str *html_notifications(snac *user, int skip, int show) xs *label_sanitized = sanitize(type); const char *label = label_sanitized; - if (strcmp(type, "Create") == 0) { + if (strcmp(type, "Create") == 0) label = L("Mention"); - } else - if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) { + if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) label = L("Finished poll"); - } else - if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") == 0) { + if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") == 0) label = L("Unfollow"); - } else if (strcmp(type, "EmojiReact") == 0 || strcmp(type, "Like") == 0) { const char *content = xs_dict_get_path(noti, "msg.content"); @@ -4277,11 +4274,8 @@ xs_str *html_notifications(snac *user, int skip, int show) } } else - if (strcmp(type, "Follow") == 0) { - if (pending_check(user, actor_id)) { - label = L("Follow Request"); - } - } + if (strcmp(type, "Follow") == 0 && pending_check(user, actor_id)) + label = L("Follow Request"); xs *s_date = html_date_label(user, date); |