diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2025-05-06 03:55:43 +0000 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2025-05-06 03:55:43 +0000 |
| commit | 6e42d34eab2debc6f0bafba01bb87d5351371858 (patch) | |
| tree | 1682a1f4019f33e9b05a68ff5ad53cbb66640b9b /activitypub.c | |
| parent | 97568a7c930cf7aaa5e4f6c72c3831837c32b111 (diff) | |
| parent | 0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e (diff) | |
Merge pull request 'Display custom emoji in more places' (#343) from dandelions/snac2:emoji-pr into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/343
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 53a1e74..dcbb79f 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1332,6 +1332,10 @@ 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")); + // this exists so we get the emoji tags from our name too. + // and then we just throw away the result, because it's kinda useless to have markdown in the display name. + xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags); + 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); |