diff options
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", |