summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar Yonle2023-07-23 23:26:33 +0700
committerGravatar Yonle2023-07-24 20:15:40 +0700
commit68d03d6d514358bf07db012622eb940a981f1960 (patch)
tree5e25be5e0cf17fa5409383d75cbee53b7d33755a /html.c
parenthtml.c & httpd.c: Fix hardlink. (diff)
downloadsnac2-68d03d6d514358bf07db012622eb940a981f1960.tar.gz
snac2-68d03d6d514358bf07db012622eb940a981f1960.tar.xz
snac2-68d03d6d514358bf07db012622eb940a981f1960.zip
html.c: No need to redirect to #snac-posts again.
Form has been minimized with <details> since commit c409d2e, So there is no need to redirect user to user/admin#snac-posts again. Signed-off-by: Yonle <yonle@lecturify.net>
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index d808e3b..198269f 100644
--- a/html.c
+++ b/html.c
@@ -345,7 +345,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
345 "<a href=\"notifications\">%s</a>%s - " 345 "<a href=\"notifications\">%s</a>%s - "
346 "<a href=\"people\">%s</a></nav>\n" 346 "<a href=\"people\">%s</a></nav>\n"
347 "<a href=\"settings\">%s</a>" 347 "<a href=\"settings\">%s</a>"
348 "</nav>" 348 "</nav>",
349 snac->uid, L("public"), 349 snac->uid, L("public"),
350 L("private"), 350 L("private"),
351 L("notifications"), n_str, 351 L("notifications"), n_str,
@@ -750,7 +750,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
750 750
751 L("Edit..."), 751 L("Edit..."),
752 md5, 752 md5,
753 snac->actor, md5, 753 md5,
754 prev_src, 754 prev_src,
755 id, 755 id,
756 L("Sensitive content"), 756 L("Sensitive content"),
@@ -2394,7 +2394,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
2394 char *redir = xs_dict_get(p_vars, "redir"); 2394 char *redir = xs_dict_get(p_vars, "redir");
2395 2395
2396 if (xs_is_null(redir)) 2396 if (xs_is_null(redir))
2397 redir = "snac-posts"; 2397 redir = "";
2398 2398
2399 *body = xs_fmt("../admin#%s", redir); 2399 *body = xs_fmt("../admin#%s", redir);
2400 *b_size = strlen(*body); 2400 *b_size = strlen(*body);