summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 2743be9..624b6e7 100644
--- a/html.c
+++ b/html.c
@@ -497,7 +497,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i
497 xs *s = xs_str_new(NULL); 497 xs *s = xs_str_new(NULL);
498 498
499 /* top wrap */ 499 /* top wrap */
500 if ((v = xs_dict_get(meta, "hidden")) && xs_type(v) == XSTYPE_TRUE) 500 if (is_hidden(snac, id))
501 s = xs_str_cat(s, "<div style=\"display: none\">\n"); 501 s = xs_str_cat(s, "<div style=\"display: none\">\n");
502 else 502 else
503 s = xs_str_cat(s, "<div>\n"); 503 s = xs_str_cat(s, "<div>\n");
@@ -1300,7 +1300,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1300 } 1300 }
1301 else 1301 else
1302 if (strcmp(action, L("Hide")) == 0) { 1302 if (strcmp(action, L("Hide")) == 0) {
1303 timeline_hide(&snac, id, 1); 1303 hide(&snac, id);
1304 } 1304 }
1305 else 1305 else
1306 if (strcmp(action, L("Follow")) == 0) { 1306 if (strcmp(action, L("Follow")) == 0) {