diff options
| author | 2023-05-21 20:32:23 +0200 | |
|---|---|---|
| committer | 2023-05-21 20:32:23 +0200 | |
| commit | 49362f54049a357e52cd6c57d2aa20d33add3307 (patch) | |
| tree | 0417bac6b8157ce7be07be86b7eb6915bb24cdf7 /html.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-49362f54049a357e52cd6c57d2aa20d33add3307.tar.gz snac2-49362f54049a357e52cd6c57d2aa20d33add3307.tar.xz snac2-49362f54049a357e52cd6c57d2aa20d33add3307.zip | |
Convert image links in notes to attachments.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -322,7 +322,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local) | |||
| 322 | s = xs_str_cat(s, s1); | 322 | s = xs_str_cat(s, s1); |
| 323 | 323 | ||
| 324 | if (local) { | 324 | if (local) { |
| 325 | xs *bio = not_really_markdown(xs_dict_get(snac->config, "bio")); | 325 | xs *bio = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL); |
| 326 | xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio); | 326 | xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio); |
| 327 | 327 | ||
| 328 | s = xs_str_cat(s, s1); | 328 | s = xs_str_cat(s, s1); |
| @@ -1467,7 +1467,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 1467 | if (strcmp(p_path, ".rss") == 0) { /** public timeline in RSS format **/ | 1467 | if (strcmp(p_path, ".rss") == 0) { /** public timeline in RSS format **/ |
| 1468 | d_char *rss; | 1468 | d_char *rss; |
| 1469 | xs *elems = timeline_simple_list(&snac, "public", 0, 20); | 1469 | xs *elems = timeline_simple_list(&snac, "public", 0, 20); |
| 1470 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio")); | 1470 | xs *bio = not_really_markdown(xs_dict_get(snac.config, "bio"), NULL); |
| 1471 | char *p, *v; | 1471 | char *p, *v; |
| 1472 | 1472 | ||
| 1473 | /* escape tags */ | 1473 | /* escape tags */ |