diff options
author | 2022-03-13 16:37:45 +0100 | |
---|---|---|
committer | 2022-03-13 16:37:45 +0100 | |
commit | e30623316670cfe466caaa6b085f6b76ecda6610 (patch) | |
tree | e123021ee9385e9b06185e43c3e4054f9c9c1a30 /internal/processing/status/create.go | |
parent | [dependencies] update go-store, go-mutexes (#422) (diff) | |
download | gotosocial-e30623316670cfe466caaa6b085f6b76ecda6610.tar.xz |
[bugfix] Fix html-escaped characters in content warnings (#426)
* test status create with odd CWs
* use SanitizeCaption for content warning escaping
Diffstat (limited to 'internal/processing/status/create.go')
-rw-r--r-- | internal/processing/status/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/status/create.go b/internal/processing/status/create.go index d5e4dd1b7..1a832d5c4 100644 --- a/internal/processing/status/create.go +++ b/internal/processing/status/create.go @@ -51,7 +51,7 @@ func (p *processor) Create(ctx context.Context, account *gtsmodel.Account, appli Local: true, AccountID: account.ID, AccountURI: account.URI, - ContentWarning: text.RemoveHTML(form.SpoilerText), + ContentWarning: text.SanitizeCaption(form.SpoilerText), ActivityStreamsType: ap.ObjectNote, Sensitive: form.Sensitive, Language: form.Language, |