diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -594,7 +594,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int | |||
| 594 | /* is the parent not here? */ | 594 | /* is the parent not here? */ |
| 595 | char *parent = xs_dict_get(msg, "inReplyTo"); | 595 | char *parent = xs_dict_get(msg, "inReplyTo"); |
| 596 | 596 | ||
| 597 | if (!xs_is_null(parent) && !object_here(parent)) { | 597 | if (!xs_is_null(parent) && *parent && !object_here(parent)) { |
| 598 | xs *s1 = xs_fmt( | 598 | xs *s1 = xs_fmt( |
| 599 | "<div class=\"snac-origin\">%s " | 599 | "<div class=\"snac-origin\">%s " |
| 600 | "<a href=\"%s\">»</a></div>\n", | 600 | "<a href=\"%s\">»</a></div>\n", |
| @@ -625,6 +625,12 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int | |||
| 625 | } | 625 | } |
| 626 | 626 | ||
| 627 | { | 627 | { |
| 628 | xs *md5 = xs_md5_hex(id, strlen(id)); | ||
| 629 | xs *s1 = xs_fmt("<p><code>%s</code></p>\n", md5); | ||
| 630 | s = xs_str_cat(s, s1); | ||
| 631 | } | ||
| 632 | |||
| 633 | { | ||
| 628 | xs *c = sanitize(xs_dict_get(msg, "content")); | 634 | xs *c = sanitize(xs_dict_get(msg, "content")); |
| 629 | char *p, *v; | 635 | char *p, *v; |
| 630 | 636 | ||