summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar Yonle2023-07-23 23:11:02 +0700
committerGravatar Yonle2023-07-24 19:42:20 +0700
commit75e061a9f78939e3235125ec180186080bd57b58 (patch)
tree5a72f426b0f632cca6682fb4b08deb0baddde022 /httpd.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-75e061a9f78939e3235125ec180186080bd57b58.tar.gz
snac2-75e061a9f78939e3235125ec180186080bd57b58.tar.xz
snac2-75e061a9f78939e3235125ec180186080bd57b58.zip
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,
91 if (user_open(&snac, uid)) { 91 if (user_open(&snac, uid)) {
92 xs *u = xs_fmt( 92 xs *u = xs_fmt(
93 "<li><a href=\"%s\">@%s@%s (%s)</a></li>\n", 93 "<li><a href=\"%s\">@%s@%s (%s)</a></li>\n",
94 snac.actor, uid, host, 94 uid, uid, host,
95 xs_dict_get(snac.config, "name")); 95 xs_dict_get(snac.config, "name"));
96 96
97 ul = xs_str_cat(ul, u); 97 ul = xs_str_cat(ul, u);