diff options
| author | default <nobody@localhost> | 2024-10-08 20:30:20 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-10-08 20:30:20 +0200 |
| commit | 107e7c0d293f5ffc640daad49f6db9f5af66ebb9 (patch) | |
| tree | b54e4823cb26180e98d1a5bafcc0ebe4267f33d3 | |
| parent | 387964944a4de2468114549e0ba13436a03eaf29 (diff) | |
Fixed emojis in the public profile.
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | html.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 19e39a9..2791047 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1158,7 +1158,7 @@ xs_dict *msg_actor(snac *snac) msg = xs_dict_set(msg, "preferredUsername", snac->uid); msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); - xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, NULL); + xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); f_bio = process_tags(snac, f_bio_2, &tags); msg = xs_dict_set(msg, "summary", f_bio); msg = xs_dict_set(msg, "tag", tags); @@ -821,10 +821,12 @@ static xs_html *html_user_body(snac *user, int read_only) if (read_only) { xs *es1 = encode_html(xs_dict_get(user->config, "bio")); - xs *bio1 = not_really_markdown(es1, NULL, NULL); xs *tags = xs_list_new(); + xs *bio1 = not_really_markdown(es1, NULL, &tags); xs *bio2 = process_tags(user, bio1, &tags); + bio2 = replace_shortnames(bio2, tags, 2); + xs_html *top_user_bio = xs_html_tag("div", xs_html_attr("class", "p-note snac-top-user-bio"), xs_html_raw(bio2)); /* already sanitized */ |