commit d19806a
green
·
2025-03-24 01:27:10 +0000 UTC
parent 7f10057
maybe a fix for username emojis
1 files changed,
+5,
-0
+5,
-0
1@@ -1327,6 +1327,11 @@ xs_dict *msg_actor(snac *snac)
2 msg = xs_dict_set(msg, "preferredUsername", snac->uid);
3 msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published"));
4
5+ // this exists so we get the emoji tags from our name too.
6+ // and then we just throw away the result, because it's kinda useless to have markdown in the dysplay name.
7+ // right now, only emojies in bio actually work for local users
8+ xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags);
9+
10 xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags);
11 f_bio = process_tags(snac, f_bio_2, &tags);
12 msg = xs_dict_set(msg, "summary", f_bio);