diff options
| author | 2025-01-29 09:24:09 +0100 | |
|---|---|---|
| committer | 2025-01-29 09:24:09 +0100 | |
| commit | 4acb3f65db21b1be6c16cf017aae890bb6dd4eea (patch) | |
| tree | 681f0d3e6b095d9411bd62aa3f2c57b2e12349c9 /html.c | |
| parent | Deleted useless code. (diff) | |
| download | penes-snac2-4acb3f65db21b1be6c16cf017aae890bb6dd4eea.tar.gz penes-snac2-4acb3f65db21b1be6c16cf017aae890bb6dd4eea.tar.xz penes-snac2-4acb3f65db21b1be6c16cf017aae890bb6dd4eea.zip | |
Call timeline_add_mark() after history_add() for better timestamp checks.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3515,8 +3515,6 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3515 | 3515 | ||
| 3516 | xs *list = timeline_list(&snac, "private", skip, show, &more); | 3516 | xs *list = timeline_list(&snac, "private", skip, show, &more); |
| 3517 | 3517 | ||
| 3518 | timeline_add_mark(&snac); | ||
| 3519 | |||
| 3520 | *body = html_timeline(&snac, list, 0, skip, show, | 3518 | *body = html_timeline(&snac, list, 0, skip, show, |
| 3521 | more, NULL, "/admin", 1, error); | 3519 | more, NULL, "/admin", 1, error); |
| 3522 | 3520 | ||
| @@ -3525,6 +3523,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3525 | 3523 | ||
| 3526 | if (save) | 3524 | if (save) |
| 3527 | history_add(&snac, "timeline.html_", *body, *b_size, etag); | 3525 | history_add(&snac, "timeline.html_", *body, *b_size, etag); |
| 3526 | |||
| 3527 | timeline_add_mark(&snac); | ||
| 3528 | } | 3528 | } |
| 3529 | } | 3529 | } |
| 3530 | } | 3530 | } |