summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c
index 73c9348..23ca8b0 100644
--- a/html.c
+++ b/html.c
@@ -809,10 +809,10 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
809 if (!login(&snac, req)) 809 if (!login(&snac, req))
810 status = 401; 810 status = 401;
811 else { 811 else {
812 if (history_mtime(&snac, "_timeline.html") > timeline_mtime(&snac)) { 812 if (history_mtime(&snac, "timeline.html_") > timeline_mtime(&snac)) {
813 snac_debug(&snac, 1, xs_fmt("serving cached timeline")); 813 snac_debug(&snac, 1, xs_fmt("serving cached timeline"));
814 814
815 *body = history_get(&snac, "_timeline.html"); 815 *body = history_get(&snac, "timeline.html_");
816 *b_size = strlen(*body); 816 *b_size = strlen(*body);
817 status = 200; 817 status = 200;
818 } 818 }
@@ -825,7 +825,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
825 *b_size = strlen(*body); 825 *b_size = strlen(*body);
826 status = 200; 826 status = 200;
827 827
828 history_add(&snac, "_timeline.html", *body, *b_size); 828 history_add(&snac, "timeline.html_", *body, *b_size);
829 } 829 }
830 } 830 }
831 } 831 }
@@ -1000,7 +1000,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1000 1000
1001 /* delete the cached timeline */ 1001 /* delete the cached timeline */
1002 if (status == 303) 1002 if (status == 303)
1003 history_del(&snac, "_timeline.html"); 1003 history_del(&snac, "timeline.html_");
1004 } 1004 }
1005 else 1005 else
1006 if (p_path && strcmp(p_path, "admin/user-setup") == 0) { 1006 if (p_path && strcmp(p_path, "admin/user-setup") == 0) {
@@ -1037,7 +1037,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1037 else 1037 else
1038 rename(bfn, fn); 1038 rename(bfn, fn);
1039 1039
1040 history_del(&snac, "_timeline.html"); 1040 history_del(&snac, "timeline.html_");
1041 1041
1042 xs *a_msg = msg_actor(&snac); 1042 xs *a_msg = msg_actor(&snac);
1043 xs *u_msg = msg_update(&snac, a_msg); 1043 xs *u_msg = msg_update(&snac, a_msg);