aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <>2021-10-09 13:57:42 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit0ef59b4f3cdddea55e38e4c3a2bdad721298eb4b (patch)
tree1249a1511f3c46eb4e367973f58209293e86f0d9 /client.go
parent7d5e18f1d6c25c82440d2787f834a20d09a3f37c (diff)
added slash for correct href routing
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.go b/client.go
index f4b74de..e306b10 100644
--- a/client.go
+++ b/client.go
@@ -491,7 +491,7 @@ func PostGet(w http.ResponseWriter, r *http.Request, db *sql.DB) {
"parseReplyLink": func(actorId string, op string, id string, content string) template.HTML {
actor := FingerActor(actorId)
title := strings.ReplaceAll(ParseLinkTitle(actor.Id, op, content), `/\&lt;`, ">")
- link := "<a href=\"" + actor.Name + "/" + shortURL(actor.Outbox, op) + "#" + shortURL(actor.Outbox, id) + "\" title=\"" + title + "\" class=\"replyLink\">&gt;&gt;" + shortURL(actor.Outbox, id) + "</a>"
+ link := "<a href=\"/" + actor.Name + "/" + shortURL(actor.Outbox, op) + "#" + shortURL(actor.Outbox, id) + "\" title=\"" + title + "\" class=\"replyLink\">&gt;&gt;" + shortURL(actor.Outbox, id) + "</a>"
return template.HTML(link)
},
"timeToReadableLong": timeToReadableLong,