snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 4acb3f65db21b1be6c16cf017aae890bb6dd4eea
parent aec643838f304468af61ca2ad4e00a9e7125e53b
Author: default <nobody@localhost>
Date:   Wed, 29 Jan 2025 09:24:09 +0100

Call timeline_add_mark() after history_add() for better timestamp checks.

Diffstat:
Mhtml.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/html.c b/html.c @@ -3515,8 +3515,6 @@ int html_get_handler(const xs_dict *req, const char *q_path, xs *list = timeline_list(&snac, "private", skip, show, &more); - timeline_add_mark(&snac); - *body = html_timeline(&snac, list, 0, skip, show, more, NULL, "/admin", 1, error); @@ -3525,6 +3523,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, if (save) history_add(&snac, "timeline.html_", *body, *b_size, etag); + + timeline_add_mark(&snac); } } }