summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-06-11 20:34:26 +0200
committerGravatar default2023-06-11 20:34:26 +0200
commitd9d4ffbc6145d31837926197da51a434061ed330 (patch)
tree4bf5c93e53663b76645261b7b06879be0dd0d5f8
parentNo more archiving of borked Likes. (diff)
downloadsnac2-d9d4ffbc6145d31837926197da51a434061ed330.tar.gz
snac2-d9d4ffbc6145d31837926197da51a434061ed330.tar.xz
snac2-d9d4ffbc6145d31837926197da51a434061ed330.zip
Hidden conversations are not rendered instead of given a 'display: none'.
-rw-r--r--html.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/html.c b/html.c
index a341a37..656f1cb 100644
--- a/html.c
+++ b/html.c
@@ -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);