diff options
author | default <nobody@localhost> | 2022-11-24 09:49:54 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-24 09:49:54 +0100 |
commit | d215f8ce4634ab769f52d70119fed2dd0d8124f9 (patch) | |
tree | 979600293c8a3c5b917a369ce090680759f7e47d /html.c | |
parent | 455352850748dc0b1bba7884c3a164dfe3e59614 (diff) |
Use the new hide API.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -497,7 +497,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i xs *s = xs_str_new(NULL); /* top wrap */ - if ((v = xs_dict_get(meta, "hidden")) && xs_type(v) == XSTYPE_TRUE) + if (is_hidden(snac, id)) s = xs_str_cat(s, "<div style=\"display: none\">\n"); else 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, } else if (strcmp(action, L("Hide")) == 0) { - timeline_hide(&snac, id, 1); + hide(&snac, id); } else if (strcmp(action, L("Follow")) == 0) { |