commit 68d03d6

Yonle  ·  2023-07-23 16:26:33 +0000 UTC
parent 75e061a
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>
1 files changed,  +3, -3
M html.c
M html.c
+3, -3
 1@@ -345,7 +345,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
 2                 "<a href=\"notifications\">%s</a>%s - "
 3                 "<a href=\"people\">%s</a></nav>\n"
 4                 "<a href=\"settings\">%s</a>"
 5-                "</nav>"
 6+                "</nav>",
 7                 snac->uid, L("public"),
 8                 L("private"),
 9                 L("notifications"), n_str,
10@@ -750,7 +750,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
11 
12             L("Edit..."),
13             md5,
14-            snac->actor, md5,
15+            md5,
16             prev_src,
17             id,
18             L("Sensitive content"),
19@@ -2394,7 +2394,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
20         char *redir = xs_dict_get(p_vars, "redir");
21 
22         if (xs_is_null(redir))
23-            redir = "snac-posts";
24+          redir = "";
25 
26         *body   = xs_fmt("../admin#%s", redir);
27         *b_size = strlen(*body);