diff options
author | Renato "Lond" Cerqueira <renato@lond.com.br> | 2018-08-31 15:16:59 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-31 15:16:59 +0200 |
commit | fe56d26f7b5bf6718bb5b8c28a7daaa45fd302ee (patch) | |
tree | 1863f6bfa5951b31ac0fc0f85c8287bb8df6b887 /app/lib | |
parent | 50d8cf8aedd85551335e1d4e896209e28545910f (diff) |
Fix autoplay issue with spoiler tag (#8540)
Add tests to avoid similar issues in the future
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 0b4690394..8b694536c 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -61,7 +61,7 @@ class Formatter Sanitize.fragment(html, config) end - def format_spoiler(status) + def format_spoiler(status, **options) html = encode(status.spoiler_text) html = encode_custom_emojis(html, status.emojis, options[:autoplay]) html.html_safe # rubocop:disable Rails/OutputSafety |