summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2026-02-14 05:48:46 +0100
committerGravatar grunfink2026-02-14 05:48:46 +0100
commit11140d0e0c0a305592334b94daa878822b94ed63 (patch)
tree442eec1bc4a0bc256d63dd6fa656ef27e37c26c9 /html.c
parentUse the 'url' link instead of 'id' (if there is one) in html_actor_icon(). (diff)
downloadsnac2-11140d0e0c0a305592334b94daa878822b94ed63.tar.gz
snac2-11140d0e0c0a305592334b94daa878822b94ed63.tar.xz
snac2-11140d0e0c0a305592334b94daa878822b94ed63.zip
Also show 'url' in notifications.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 7651fcb..b989332 100644
--- a/html.c
+++ b/html.c
@@ -4251,6 +4251,8 @@ xs_str *html_notifications(snac *user, int skip, int show)
4251 enqueue_actor_refresh(user, actor_id, 0); 4251 enqueue_actor_refresh(user, actor_id, 0);
4252 } 4252 }
4253 4253
4254 const char *html_url = xs_dict_get_def(actor, "url", actor_id);
4255
4254 xs *label_sanitized = sanitize(type); 4256 xs *label_sanitized = sanitize(type);
4255 const char *label = label_sanitized; 4257 const char *label = label_sanitized;
4256 4258
@@ -4294,7 +4296,7 @@ xs_str *html_notifications(snac *user, int skip, int show)
4294 xs_html_raw(label), 4296 xs_html_raw(label),
4295 xs_html_text(" by "), 4297 xs_html_text(" by "),
4296 xs_html_tag("a", 4298 xs_html_tag("a",
4297 xs_html_attr("href", actor_id), 4299 xs_html_attr("href", html_url),
4298 xs_html_raw(a_name))), /* a_name is already sanitized */ 4300 xs_html_raw(a_name))), /* a_name is already sanitized */
4299 xs_html_text(" "), 4301 xs_html_text(" "),
4300 xs_html_tag("time", 4302 xs_html_tag("time",