diff options
| author | 2022-11-24 09:49:54 +0100 | |
|---|---|---|
| committer | 2022-11-24 09:49:54 +0100 | |
| commit | d215f8ce4634ab769f52d70119fed2dd0d8124f9 (patch) | |
| tree | 979600293c8a3c5b917a369ce090680759f7e47d /html.c | |
| parent | New API for hidden threads. (diff) | |
| download | snac2-d215f8ce4634ab769f52d70119fed2dd0d8124f9.tar.gz snac2-d215f8ce4634ab769f52d70119fed2dd0d8124f9.tar.xz snac2-d215f8ce4634ab769f52d70119fed2dd0d8124f9.zip | |
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 | |||
| 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) { |