diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9d387f3..f7e281c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,9 +1,5 @@ # Release Notes -## 2.39 - -User settings have been moved to their own page. - ## 2.38 More vulnerability fixes (contributed by yonle). diff --git a/html.c b/html.c index 725c064..ab23032 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ - /* snac - A simple, minimalistic ActivityPub instance */ +/* snac - A simple, minimalistic ActivityPub instance */ /* copyright (c) 2022 - 2023 grunfink / MIT license */ #include "xs.h" @@ -325,8 +325,8 @@ d_char *html_user_header(snac *snac, d_char *s, int local) s1 = xs_fmt( "%s - " "%s\n", - snac->uid, L("RSS"), - snac->uid, L("private")); + snac->actor, L("RSS"), + snac->actor, L("private")); else { xs *n_list = notify_list(snac, 1); int n_len = xs_list_len(n_list); @@ -340,14 +340,14 @@ d_char *html_user_header(snac *snac, d_char *s, int local) n_str = xs_str_new(""); s1 = xs_fmt( - "%s - " - "%s - " - "%s%s - " - "%s\n", - snac->uid, L("public"), - L("private"), - L("notifications"), n_str, - L("people")); + "%s - " + "%s - " + "%s%s - " + "%s\n", + snac->actor, L("public"), + snac->actor, L("private"), + snac->actor, L("notifications"), n_str, + snac->actor, L("people")); } s = xs_str_cat(s, s1); @@ -394,7 +394,7 @@ d_char *html_top_controls(snac *snac, d_char *s) "
\n", L("Clear all"));
+ " \n", snac->actor, L("Clear all"));
s = xs_str_cat(s, s1);
while (xs_list_iter(&p, &v)) {
@@ -2372,9 +2378,9 @@ 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 = "";
+ redir = "snac-posts";
- *body = xs_fmt("../admin#%s", redir);
+ *body = xs_fmt("%s/admin#%s", snac.actor, redir);
*b_size = strlen(*body);
}
diff --git a/httpd.c b/httpd.c
index 1d2200e..9aac3b5 100644
--- a/httpd.c
+++ b/httpd.c
@@ -91,7 +91,7 @@ int server_get_handler(xs_dict *req, char *q_path,
if (user_open(&snac, uid)) {
xs *u = xs_fmt(
"%s
\n"
"%s
\n"
"%s
\n"
"