diff options
| author | default <nobody@localhost> | 2024-10-28 10:20:27 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-10-28 10:20:27 +0100 |
| commit | 59142795e78806208a541243d66fed6965f642ea (patch) | |
| tree | 3f70a3d5b0f09ad1b12a838e86536d7e7b574474 | |
| parent | a0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7 (diff) | |
Some work towards collapsing threads by default.
| -rw-r--r-- | html.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1453,6 +1453,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *actor; const char *v; int has_title = 0; + int collapse_threads = 0; /* do not show non-public messages in the public timeline */ if ((read_only || !user) && !is_msg_public(msg)) @@ -2053,7 +2054,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, if (left) { xs_html *ch_details = xs_html_tag("details", - xs_html_attr("open", NULL), + xs_html_attr(collapse_threads ? "" : "open", NULL), xs_html_tag("summary", xs_html_text("..."))); |