From 5cff4d3740eb8b9f67de9713124e84109d04cff8 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 13 Jun 2022 17:58:26 -0700 Subject: admin reported management improvements --- route/util.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'route/util.go') 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, -- cgit v1.2.3