diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -769,13 +769,11 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 769 | if (local && !is_msg_public(snac, msg)) | 769 | if (local && !is_msg_public(snac, msg)) |
| 770 | return os; | 770 | return os; |
| 771 | 771 | ||
| 772 | xs *s = xs_str_new(NULL); | 772 | /* hidden? do nothing more for this conversation */ |
| 773 | |||
| 774 | /* top wrap */ | ||
| 775 | if (is_hidden(snac, id)) | 773 | if (is_hidden(snac, id)) |
| 776 | s = xs_str_cat(s, "<div style=\"display: none\">\n"); | 774 | return os; |
| 777 | else | 775 | |
| 778 | s = xs_str_cat(s, "<div>\n"); | 776 | xs *s = xs_str_new("<div>\n"); |
| 779 | 777 | ||
| 780 | { | 778 | { |
| 781 | xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5); | 779 | xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5); |