commit 4acb3f6

default  ·  2025-01-29 08:24:09 +0000 UTC
parent aec6438
Call timeline_add_mark() after history_add() for better timestamp checks.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -3515,8 +3515,6 @@ int html_get_handler(const xs_dict *req, const char *q_path,
 2 
 3                     xs *list = timeline_list(&snac, "private", skip, show, &more);
 4 
 5-                    timeline_add_mark(&snac);
 6-
 7                     *body = html_timeline(&snac, list, 0, skip, show,
 8                             more, NULL, "/admin", 1, error);
 9 
10@@ -3525,6 +3523,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
11 
12                     if (save)
13                         history_add(&snac, "timeline.html_", *body, *b_size, etag);
14+
15+                    timeline_add_mark(&snac);
16                 }
17             }
18         }