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/media/update.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/media/update.go')
-rw-r--r-- | internal/processing/media/update.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/media/update.go b/internal/processing/media/update.go index 33649f201..59ade9ca5 100644 --- a/internal/processing/media/update.go +++ b/internal/processing/media/update.go @@ -47,7 +47,7 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, media var updatingColumns []string if form.Description != nil { - attachment.Description = text.SanitizePlaintext(*form.Description) + attachment.Description = text.SanitizeToPlaintext(*form.Description) updatingColumns = append(updatingColumns, "description") } |