summaryrefslogtreecommitdiff
path: root/internal/processing/status/create.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-03-13 16:37:45 +0100
committerLibravatar GitHub <noreply@github.com>2022-03-13 16:37:45 +0100
commite30623316670cfe466caaa6b085f6b76ecda6610 (patch)
treee123021ee9385e9b06185e43c3e4054f9c9c1a30 /internal/processing/status/create.go
parent[dependencies] update go-store, go-mutexes (#422) (diff)
downloadgotosocial-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.go2
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,