diff options
Diffstat (limited to 'internal/text/plain.go')
-rw-r--r-- | internal/text/plain.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/text/plain.go b/internal/text/plain.go index 1935cec8c..362941773 100644 --- a/internal/text/plain.go +++ b/internal/text/plain.go @@ -24,6 +24,7 @@ import ( "codeberg.org/gruf/go-byteutil" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" + "github.com/superseriousbusiness/gotosocial/internal/regexes" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/parser" @@ -158,7 +159,10 @@ func (f *Formatter) fromPlain( emojiOnly, result, }, - extension.Linkify, // Turns URLs into links. + // Turns URLs into links. + extension.NewLinkify( + extension.WithLinkifyURLRegexp(regexes.LinkScheme), + ), ), ) |