Bump version to v4.2.0-rc2 (#26974)
This commit is contained in:
parent
d1fa9d8f44
commit
7d181d6968
6 changed files with 56 additions and 220 deletions
|
@ -75,7 +75,9 @@ class TranslateStatusService < BaseService
|
|||
|
||||
case source
|
||||
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
|
||||
status_translation.spoiler_text = unwrap_emoji_shortcodes(translation.text).content
|
||||
when Poll::Option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue