From f82124a705d9c5350b92fba6a03c556c1fd5b2b0 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 2 Oct 2022 18:16:58 +0200 Subject: The history is shown at the bottom of the local timeline. --- html.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index ad867af..f36bcfb 100644 --- a/html.c +++ b/html.c @@ -483,6 +483,10 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i xs *actor_o = NULL; char *actor; + /* do not show non-public messages in the public timeline */ + if (local && !is_msg_public(snac, msg)) + return os; + /* return if already seen */ if (xs_set_add(seen, id) == 0) return os; @@ -720,6 +724,31 @@ d_char *html_timeline(snac *snac, char *list, int local) s = xs_str_cat(s, "\n"); + if (local) { + xs *s1 = xs_fmt( + "
\n" + "

%s

\n"); + } + s = html_user_footer(snac, s); { -- cgit v1.2.3