~cytrogen/masto-fe

ff32475f5f4a84ebf9619e7eef5bf8b4c075d0e2 — Claire 2 years ago 94893cf
Merge pull request from GHSA-2693-xr3m-jhqr

1 files changed, 3 insertions(+), 1 deletions(-)

M app/services/translate_status_service.rb
M app/services/translate_status_service.rb => app/services/translate_status_service.rb +3 -1
@@ 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