diff options
| author | 2025-03-24 02:27:10 +0100 | |
|---|---|---|
| committer | 2025-04-13 14:39:56 +0200 | |
| commit | d19806a72db3585048c57f8940a74ec04f16e125 (patch) | |
| tree | 3403ca65e67d5c38bf180015aff71c9b05769f8a /activitypub.c | |
| parent | fixed broken emojis on akkoma (diff) | |
| download | penes-snac2-d19806a72db3585048c57f8940a74ec04f16e125.tar.gz penes-snac2-d19806a72db3585048c57f8940a74ec04f16e125.tar.xz penes-snac2-d19806a72db3585048c57f8940a74ec04f16e125.zip | |
maybe a fix for username emojis
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 4c22c25..ee7c9b1 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1327,6 +1327,11 @@ xs_dict *msg_actor(snac *snac) | |||
| 1327 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); | 1327 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); |
| 1328 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); | 1328 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); |
| 1329 | 1329 | ||
| 1330 | // this exists so we get the emoji tags from our name too. | ||
| 1331 | // and then we just throw away the result, because it's kinda useless to have markdown in the dysplay name. | ||
| 1332 | // right now, only emojies in bio actually work for local users | ||
| 1333 | xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags); | ||
| 1334 | |||
| 1330 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); | 1335 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); |
| 1331 | f_bio = process_tags(snac, f_bio_2, &tags); | 1336 | f_bio = process_tags(snac, f_bio_2, &tags); |
| 1332 | msg = xs_dict_set(msg, "summary", f_bio); | 1337 | msg = xs_dict_set(msg, "summary", f_bio); |