From 75e061a9f78939e3235125ec180186080bd57b58 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 23 Jul 2023 23:11:02 +0700 Subject: 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 --- httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.c') 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( "
  • @%s@%s (%s)
  • \n", - snac.actor, uid, host, + uid, uid, host, xs_dict_get(snac.config, "name")); ul = xs_str_cat(ul, u); -- cgit v1.2.3