diff options
| author | 2025-05-06 03:55:43 +0000 | |
|---|---|---|
| committer | 2025-05-06 03:55:43 +0000 | |
| commit | 6e42d34eab2debc6f0bafba01bb87d5351371858 (patch) | |
| tree | 1682a1f4019f33e9b05a68ff5ad53cbb66640b9b /activitypub.c | |
| parent | Better error handling in xs_webmention_send(). (diff) | |
| parent | cleaned up old changes and outdated comments (diff) | |
| download | penes-snac2-6e42d34eab2debc6f0bafba01bb87d5351371858.tar.gz penes-snac2-6e42d34eab2debc6f0bafba01bb87d5351371858.tar.xz penes-snac2-6e42d34eab2debc6f0bafba01bb87d5351371858.zip | |
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) | |||
| 1332 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); | 1332 | msg = xs_dict_set(msg, "preferredUsername", snac->uid); |
| 1333 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); | 1333 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); |
| 1334 | 1334 | ||
| 1335 | // this exists so we get the emoji tags from our name too. | ||
| 1336 | // and then we just throw away the result, because it's kinda useless to have markdown in the display name. | ||
| 1337 | xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags); | ||
| 1338 | |||
| 1335 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); | 1339 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); |
| 1336 | f_bio = process_tags(snac, f_bio_2, &tags); | 1340 | f_bio = process_tags(snac, f_bio_2, &tags); |
| 1337 | msg = xs_dict_set(msg, "summary", f_bio); | 1341 | msg = xs_dict_set(msg, "summary", f_bio); |