summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-14 11:48:05 +0200
committerdefault <nobody@localhost>2023-08-14 11:48:05 +0200
commitab41e651d07eff7a5091d9900c3adc87929a02f2 (patch)
treefbedad7ecda1a3c66a13c2bbf9e39f8fd75d032d
parent5c3cebb163db98af1f44aed91a621cb893779c58 (diff)
Don't show children in the instance timeline.
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 1da0b9c..1b0e7c7 100644
--- a/html.c
+++ b/html.c
@@ -937,7 +937,7 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
xs *boosts = NULL;
/* do not show non-public messages in the public timeline */
- if (local && !is_msg_public(msg))
+ if ((local || !user) && !is_msg_public(msg))
return os;
/* hidden? do nothing more for this conversation */
@@ -1484,7 +1484,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, int skip, int
if (!valid_status(status))
continue;
- s = html_entry(user, s, msg, local, 0, v, 0);
+ s = html_entry(user, s, msg, local, 0, v, user ? 0 : 1);
}
s = xs_str_cat(s, "</div>\n");