commit 11140d0

grunfink  ·  2026-02-14 04:48:46 +0000 UTC
parent ebcdb74
Also show 'url' in notifications.
1 files changed,  +3, -1
M html.c
M html.c
+3, -1
 1@@ -4251,6 +4251,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
 2             enqueue_actor_refresh(user, actor_id, 0);
 3         }
 4 
 5+        const char *html_url = xs_dict_get_def(actor, "url", actor_id);
 6+
 7         xs *label_sanitized = sanitize(type);
 8         const char *label = label_sanitized;
 9 
10@@ -4294,7 +4296,7 @@ xs_str *html_notifications(snac *user, int skip, int show)
11                     xs_html_raw(label),
12                     xs_html_text(" by "),
13                     xs_html_tag("a",
14-                        xs_html_attr("href", actor_id),
15+                        xs_html_attr("href", html_url),
16                         xs_html_raw(a_name))), /* a_name is already sanitized */
17                 xs_html_text(" "),
18                 xs_html_tag("time",