mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
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>
This commit is contained in:
parent
75e061a9f7
commit
68d03d6d51
1 changed files with 3 additions and 3 deletions
6
html.c
6
html.c
|
@ -345,7 +345,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
|
|||
"<a href=\"notifications\">%s</a>%s - "
|
||||
"<a href=\"people\">%s</a></nav>\n"
|
||||
"<a href=\"settings\">%s</a>"
|
||||
"</nav>"
|
||||
"</nav>",
|
||||
snac->uid, L("public"),
|
||||
L("private"),
|
||||
L("notifications"), n_str,
|
||||
|
@ -750,7 +750,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
|
|||
|
||||
L("Edit..."),
|
||||
md5,
|
||||
snac->actor, md5,
|
||||
md5,
|
||||
prev_src,
|
||||
id,
|
||||
L("Sensitive content"),
|
||||
|
@ -2394,7 +2394,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
|
|||
char *redir = xs_dict_get(p_vars, "redir");
|
||||
|
||||
if (xs_is_null(redir))
|
||||
redir = "snac-posts";
|
||||
redir = "";
|
||||
|
||||
*body = xs_fmt("../admin#%s", redir);
|
||||
*b_size = strlen(*body);
|
||||
|
|
Loading…
Reference in a new issue