diff options
| author | 2024-03-25 16:15:09 +0100 | |
|---|---|---|
| committer | 2024-03-25 16:15:09 +0100 | |
| commit | adf0a13992edb85738ac983a872937a805629474 (patch) | |
| tree | 31e084c9ff92a82e2083e8225e703bceeec56981 /html.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 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -775,7 +775,7 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 775 | 775 | ||
| 776 | if (read_only) { | 776 | if (read_only) { |
| 777 | xs *es1 = encode_html(xs_dict_get(user->config, "bio")); | 777 | xs *es1 = encode_html(xs_dict_get(user->config, "bio")); |
| 778 | xs *bio1 = not_really_markdown(es1, NULL); | 778 | xs *bio1 = not_really_markdown(es1, NULL, NULL); |
| 779 | xs *tags = xs_list_new(); | 779 | xs *tags = xs_list_new(); |
| 780 | xs *bio2 = process_tags(user, bio1, &tags); | 780 | xs *bio2 = process_tags(user, bio1, &tags); |
| 781 | 781 | ||
| @@ -2657,7 +2657,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 2657 | return 403; | 2657 | return 403; |
| 2658 | 2658 | ||
| 2659 | xs *elems = timeline_simple_list(&snac, "public", 0, 20); | 2659 | xs *elems = timeline_simple_list(&snac, "public", 0, 20); |
| 2660 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio"), NULL); | 2660 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio"), NULL, NULL); |
| 2661 | 2661 | ||
| 2662 | xs *rss_title = xs_fmt("%s (@%s@%s)", | 2662 | xs *rss_title = xs_fmt("%s (@%s@%s)", |
| 2663 | xs_dict_get(snac.config, "name"), | 2663 | xs_dict_get(snac.config, "name"), |