diff options
| -rw-r--r-- | html.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -3350,7 +3350,8 @@ xs_str *html_notifications(snac *user, int skip, int show) | |||
| 3350 | continue; | 3350 | continue; |
| 3351 | 3351 | ||
| 3352 | xs *a_name = actor_name(actor, proxy); | 3352 | xs *a_name = actor_name(actor, proxy); |
| 3353 | const char *label = type; | 3353 | xs *label_sanatized = sanitize(type); |
| 3354 | const char *label = label_sanatized; | ||
| 3354 | 3355 | ||
| 3355 | if (strcmp(type, "Create") == 0) | 3356 | if (strcmp(type, "Create") == 0) |
| 3356 | label = L("Mention"); | 3357 | label = L("Mention"); |
| @@ -3365,7 +3366,8 @@ xs_str *html_notifications(snac *user, int skip, int show) | |||
| 3365 | const char *content = xs_dict_get_path(noti, "msg.content"); | 3366 | const char *content = xs_dict_get_path(noti, "msg.content"); |
| 3366 | 3367 | ||
| 3367 | if (xs_type(content) == XSTYPE_STRING) { | 3368 | if (xs_type(content) == XSTYPE_STRING) { |
| 3368 | wrk = xs_fmt("%s (%s)", type, content); | 3369 | xs *emoji = replace_shortnames(xs_dup(content), xs_dict_get_path(noti, "msg.tag"), 1, proxy); |
| 3370 | wrk = xs_fmt("%s (%s)", type, emoji); | ||
| 3369 | label = wrk; | 3371 | label = wrk; |
| 3370 | } | 3372 | } |
| 3371 | } | 3373 | } |
| @@ -3377,7 +3379,7 @@ xs_str *html_notifications(snac *user, int skip, int show) | |||
| 3377 | 3379 | ||
| 3378 | xs_html *this_html_label = xs_html_container( | 3380 | xs_html *this_html_label = xs_html_container( |
| 3379 | xs_html_tag("b", | 3381 | xs_html_tag("b", |
| 3380 | xs_html_text(label), | 3382 | xs_html_raw(label), |
| 3381 | xs_html_text(" by "), | 3383 | xs_html_text(" by "), |
| 3382 | xs_html_tag("a", | 3384 | xs_html_tag("a", |
| 3383 | xs_html_attr("href", actor_id), | 3385 | xs_html_attr("href", actor_id), |