aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorbyte <gf3qyrmw7@mozmail.com>2026-01-25 01:00:01 +0000
committerbyte <byte@noreply.codeberg.org>2026-01-25 16:56:04 +0100
commitc87c4dc26006efee36537466bdce9b2b454d1455 (patch)
tree11eebc087899177af98e845f707322ab7bd461e5 /html.c
parent56ca23c68c76fc1225f64b3d19e7c23954b2e8a3 (diff)
style
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)
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);