mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 07:03:02 -06:00
sanitize html for statuses + instance
This commit is contained in:
parent
846057f0d6
commit
a0252502f5
7 changed files with 86 additions and 27 deletions
|
|
@ -29,7 +29,7 @@ func (p *processor) Create(account *gtsmodel.Account, application *gtsmodel.Appl
|
|||
Local: true,
|
||||
AccountID: account.ID,
|
||||
AccountURI: account.URI,
|
||||
ContentWarning: form.SpoilerText,
|
||||
ContentWarning: util.RemoveHTML(form.SpoilerText),
|
||||
ActivityStreamsType: gtsmodel.ActivityStreamsNote,
|
||||
Sensitive: form.Sensitive,
|
||||
Language: form.Language,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue