commit b2f091c

e0w0e  ·  2026-06-22 19:00:55 +0000 UTC
parent a0fada7
Fixed custom emojis would turn into plain text with the :shortcode: format after edit status.

I've noticed that when I post a status, custom emojis display correctly, but when I edit this status using clients(e.g.Trunks, Moshidon, Phanpy.social...), the custom emojis no longer display correctly. This change might resolve the issue.
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 */