commit 0cc14c3
grunfink
·
2026-02-14 15:47:22 +0000 UTC
parent 3907b00
Do the same with list 'url' fields in notifications.
1 files changed,
+6,
-0
M
html.c
M
html.c
+6,
-0
1@@ -4260,6 +4260,12 @@ xs_str *html_notifications(snac *user, int skip, int show)
2
3 const char *html_url = xs_dict_get_def(actor, "url", actor_id);
4
5+ if (xs_is_list(html_url))
6+ html_url = xs_list_get(html_url, 0);
7+
8+ if (!xs_is_string(html_url))
9+ html_url = actor_id;
10+
11 xs *label_sanitized = sanitize(type);
12 const char *label = label_sanitized;
13