commit 0885a39

grunfink  ·  2026-06-25 16:44:41 +0000 UTC
parents e817de5, b2f091c
Merge pull request 'Fixed custom emojis would turn into plain text with the :shortcode: format after edit status.' (#623) from e0w0e/snac:custom_emoji_edit_patch into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/623
1 files changed,  +1, -1
+1, -1
 1@@ -4208,8 +4208,8 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path,
 2                 if (valid_status(timeline_get_by_md5(&snac, md5, &msg))) {
 3                     const char *content = xs_dict_get(args, "status");
 4                     xs *atls = xs_list_new();
 5-                    xs *f_content0 = not_really_markdown(content, &atls, NULL);
 6                     xs *tag = xs_list_new();
 7+                    xs *f_content0 = not_really_markdown(content, &atls, &tag);
 8                     xs *f_content = process_tags(&snac, f_content0, &tag);
 9 
10                     /* replace fields with new content */