summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-06 19:21:29 +0200
committerdefault <nobody@localhost>2022-10-06 19:21:29 +0200
commitf9be6c58ed6615e08f6c1ed5bbc645cea89ca2de (patch)
tree850f4e175dff1160af6e5b64ed8d6582a0e938cd
parent4428e767dea53f450f19704e1cb58468d6843713 (diff)
After doing some timeline operation, the page is loaded at the snac-posts anchor.
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index b011749..22c6e83 100644
--- a/html.c
+++ b/html.c
@@ -758,6 +758,7 @@ d_char *html_timeline(snac *snac, char *list, int local)
if (!local)
s = html_top_controls(snac, s);
+ s = xs_str_cat(s, "<a name=\"snac-posts\"></a>\n");
s = xs_str_cat(s, "<div class=\"snac-posts\">\n");
while (xs_list_iter(&list, &v)) {
@@ -1086,7 +1087,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
}
if (status == 303) {
- *body = xs_fmt("%s/admin", snac.actor);
+ *body = xs_fmt("%s/admin#snac-posts", snac.actor);
*b_size = strlen(*body);
}