diff options
| author | grunfink <grunfink@comam.es> | 2026-02-14 05:48:46 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-02-14 05:48:46 +0100 |
| commit | 11140d0e0c0a305592334b94daa878822b94ed63 (patch) | |
| tree | 442eec1bc4a0bc256d63dd6fa656ef27e37c26c9 | |
| parent | ebcdb748659407fd9038ada847e065cabe950a16 (diff) | |
Also show 'url' in notifications.
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4251,6 +4251,8 @@ xs_str *html_notifications(snac *user, int skip, int show) enqueue_actor_refresh(user, actor_id, 0); } + const char *html_url = xs_dict_get_def(actor, "url", actor_id); + xs *label_sanitized = sanitize(type); const char *label = label_sanitized; @@ -4294,7 +4296,7 @@ xs_str *html_notifications(snac *user, int skip, int show) xs_html_raw(label), xs_html_text(" by "), xs_html_tag("a", - xs_html_attr("href", actor_id), + xs_html_attr("href", html_url), xs_html_raw(a_name))), /* a_name is already sanitized */ xs_html_text(" "), xs_html_tag("time", |