diff options
author | 2023-08-11 14:40:11 +0200 | |
---|---|---|
committer | 2023-08-11 14:40:11 +0200 | |
commit | dc96562b4084e058846aea9102ef0257461717d6 (patch) | |
tree | a0b4bdbaa266386c7fdbbc02ca3e62bae559bf17 /internal/processing/admin/domainblock.go | |
parent | [feature] Set Content-Security-Policy header (#2095) (diff) | |
download | gotosocial-dc96562b4084e058846aea9102ef0257461717d6.tar.xz |
[bugfix] Use custom bluemonday policy to disallow inline img tags (#2100)
Diffstat (limited to 'internal/processing/admin/domainblock.go')
-rw-r--r-- | internal/processing/admin/domainblock.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/admin/domainblock.go b/internal/processing/admin/domainblock.go index c645f287a..a85d78a56 100644 --- a/internal/processing/admin/domainblock.go +++ b/internal/processing/admin/domainblock.go @@ -67,8 +67,8 @@ func (p *Processor) DomainBlockCreate( ID: id.NewULID(), Domain: domain, CreatedByAccountID: account.ID, - PrivateComment: text.SanitizePlaintext(privateComment), - PublicComment: text.SanitizePlaintext(publicComment), + PrivateComment: text.SanitizeToPlaintext(privateComment), + PublicComment: text.SanitizeToPlaintext(publicComment), Obfuscate: &obfuscate, SubscriptionID: subscriptionID, } |