commit e1dd391c69fbeac12434b7a717af714e4595bbf6
parent bbbf62a7a655559def85e25cb4dd54c0d4a5a177
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 6 Jun 2023 00:42:35 -0700
dead code
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go
@@ -15,7 +15,6 @@ import (
"github.com/ProtonMail/go-crypto/openpgp/clearsign"
"github.com/dustin/go-humanize"
"github.com/labstack/echo"
- "github.com/microcosm-cc/bluemonday"
html2 "html"
"math"
"net/http"
@@ -526,13 +525,6 @@ func linkDefaultRooms(html string) string {
return r.Replace(html)
}
-func sanitizeUserInput(html string) string {
- p := bluemonday.NewPolicy()
- p.AllowAttrs("href", "target", "rel").OnElements("a")
- p.AllowElements("br")
- return p.Sanitize(html)
-}
-
// Convert timestamps such as 01:23:45 to an archive link if a message with that timestamp exists.
// eg: "Some text 14:31:46 some more text"
func convertArchiveLinks(db *database.DkfDB, html string, roomID database.RoomID, authUserID database.UserID) string {