diff options
| author | 2024-03-25 16:15:09 +0100 | |
|---|---|---|
| committer | 2024-03-25 16:15:09 +0100 | |
| commit | adf0a13992edb85738ac983a872937a805629474 (patch) | |
| tree | 31e084c9ff92a82e2083e8225e703bceeec56981 /mastoapi.c | |
| parent | Emojis are now read from ~/emojis.json. (diff) | |
| download | snac2-adf0a13992edb85738ac983a872937a805629474.tar.gz snac2-adf0a13992edb85738ac983a872937a805629474.tar.xz snac2-adf0a13992edb85738ac983a872937a805629474.zip | |
If an emoji in emojis.json is an URL to an image, it's stored in the tag list.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2717,7 +2717,7 @@ int mastoapi_put_handler(const xs_dict *req, const char *q_path, | |||
| 2717 | if (valid_status(timeline_get_by_md5(&snac, md5, &msg))) { | 2717 | if (valid_status(timeline_get_by_md5(&snac, md5, &msg))) { |
| 2718 | const char *content = xs_dict_get(args, "status"); | 2718 | const char *content = xs_dict_get(args, "status"); |
| 2719 | xs *atls = xs_list_new(); | 2719 | xs *atls = xs_list_new(); |
| 2720 | xs *f_content = not_really_markdown(content, &atls); | 2720 | xs *f_content = not_really_markdown(content, &atls, NULL); |
| 2721 | 2721 | ||
| 2722 | /* replace fields with new content */ | 2722 | /* replace fields with new content */ |
| 2723 | msg = xs_dict_set(msg, "sourceContent", content); | 2723 | msg = xs_dict_set(msg, "sourceContent", content); |