aboutsummaryrefslogtreecommitdiff
path: root/route/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'route/util.go')
-rw-r--r--route/util.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/route/util.go b/route/util.go
index 131cf5a..74926b4 100644
--- a/route/util.go
+++ b/route/util.go
@@ -374,6 +374,13 @@ func TemplateFunctions(engine *html.Engine) {
return returnString
})
+ engine.AddFunc("parseLinkTitle", func(board string, op string, content string) string {
+ nContent := post.ParseLinkTitle(board, op, content)
+ nContent = strings.ReplaceAll(nContent, `/\<`, ">")
+
+ return nContent
+ })
+
engine.AddFunc("parseLink", func(board activitypub.Actor, link string) string {
var obj = activitypub.ObjectBase{
Id: link,