gearheads
/
mastodon
Archived
2
0
Fork 0

Merge pull request from GHSA-2693-xr3m-jhqr

gh/dev^2
Claire 2023-09-19 16:53:21 +02:00 committed by GitHub
parent 94893cf24f
commit ff32475f5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ class TranslateStatusService < BaseService
case source case source
when :content when :content
status_translation.content = unwrap_emoji_shortcodes(translation.text).to_html node = unwrap_emoji_shortcodes(translation.text)
Sanitize.node!(node, Sanitize::Config::MASTODON_STRICT)
status_translation.content = node.to_html
when :spoiler_text when :spoiler_text
status_translation.spoiler_text = unwrap_emoji_shortcodes(translation.text).content status_translation.spoiler_text = unwrap_emoji_shortcodes(translation.text).content
when Poll::Option when Poll::Option