diff options
author | FChannel <> | 2022-06-13 17:58:26 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 5cff4d3740eb8b9f67de9713124e84109d04cff8 (patch) | |
tree | 8940203f84ef45e36d3cea414c40ace47152a8ce /route/util.go | |
parent | cc3e8e57154409469267b0526807a907d5166147 (diff) |
admin reported management improvements
Diffstat (limited to 'route/util.go')
-rw-r--r-- | route/util.go | 7 |
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, |