summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-10-28 10:20:27 +0100
committerGravatar default2024-10-28 10:20:27 +0100
commit59142795e78806208a541243d66fed6965f642ea (patch)
tree3f70a3d5b0f09ad1b12a838e86536d7e7b574474 /html.c
parentFixed crash. (diff)
downloadsnac2-59142795e78806208a541243d66fed6965f642ea.tar.gz
snac2-59142795e78806208a541243d66fed6965f642ea.tar.xz
snac2-59142795e78806208a541243d66fed6965f642ea.zip
Some work towards collapsing threads by default.
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index 93d218c..cb755fb 100644
--- a/html.c
+++ b/html.c
@@ -1453,6 +1453,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
1453 const char *actor; 1453 const char *actor;
1454 const char *v; 1454 const char *v;
1455 int has_title = 0; 1455 int has_title = 0;
1456 int collapse_threads = 0;
1456 1457
1457 /* do not show non-public messages in the public timeline */ 1458 /* do not show non-public messages in the public timeline */
1458 if ((read_only || !user) && !is_msg_public(msg)) 1459 if ((read_only || !user) && !is_msg_public(msg))
@@ -2053,7 +2054,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2053 2054
2054 if (left) { 2055 if (left) {
2055 xs_html *ch_details = xs_html_tag("details", 2056 xs_html *ch_details = xs_html_tag("details",
2056 xs_html_attr("open", NULL), 2057 xs_html_attr(collapse_threads ? "" : "open", NULL),
2057 xs_html_tag("summary", 2058 xs_html_tag("summary",
2058 xs_html_text("..."))); 2059 xs_html_text("...")));
2059 2060