Просмотр исходного кода

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.
e0w0e 1 месяц назад
Родитель
Сommit
b2f091cb5a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      mastoapi.c

+ 1 - 1
mastoapi.c

@@ -4208,8 +4208,8 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path,
                 if (valid_status(timeline_get_by_md5(&snac, md5, &msg))) {
                     const char *content = xs_dict_get(args, "status");
                     xs *atls = xs_list_new();
-                    xs *f_content0 = not_really_markdown(content, &atls, NULL);
                     xs *tag = xs_list_new();
+                    xs *f_content0 = not_really_markdown(content, &atls, &tag);
                     xs *f_content = process_tags(&snac, f_content0, &tag);
 
                     /* replace fields with new content */