summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorYonle <yonle@lecturify.net>2023-07-23 23:11:02 +0700
committerYonle <yonle@lecturify.net>2023-07-24 19:42:20 +0700
commit75e061a9f78939e3235125ec180186080bd57b58 (patch)
tree5a72f426b0f632cca6682fb4b08deb0baddde022 /httpd.c
parent40038831768eea53f79f174edc524e57a4ec2106 (diff)
html.c & httpd.c: Fix hardlink.
Some people may still want to post in the web client with such different way, Such as posting from Yggdrasil / SSH port forwarder, and so on. This commit gives the workaround for that purpose, However things will go messed up when current path were ends with / (Like: user/, admin/). But overall, If user just uses it like normal, Then things will just worked well as expected. Signed-off-by: Yonle <yonle@lecturify.net>
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 9aac3b5..1d2200e 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(
"<li><a href=\"%s\">@%s@%s (%s)</a></li>\n",
- snac.actor, uid, host,
+ uid, uid, host,
xs_dict_get(snac.config, "name"));
ul = xs_str_cat(ul, u);