diff options
| author | 2026-02-14 05:48:46 +0100 | |
|---|---|---|
| committer | 2026-02-14 05:48:46 +0100 | |
| commit | 11140d0e0c0a305592334b94daa878822b94ed63 (patch) | |
| tree | 442eec1bc4a0bc256d63dd6fa656ef27e37c26c9 /html.c | |
| parent | Use the 'url' link instead of 'id' (if there is one) in html_actor_icon(). (diff) | |
| download | snac2-11140d0e0c0a305592334b94daa878822b94ed63.tar.gz snac2-11140d0e0c0a305592334b94daa878822b94ed63.tar.xz snac2-11140d0e0c0a305592334b94daa878822b94ed63.zip | |
Also show 'url' in notifications.
Diffstat (limited to 'html.c')
| -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) | |||
| 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", |