mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 05:08:03 +00:00
fix a regression introduced by e2491680e6
(#2966)
that caused user pages to break when showing toots with CWs
This commit is contained in:
parent
43db2cf5e7
commit
57a3d71c90
|
@ -29,9 +29,10 @@ class Formatter
|
|||
return reformat(status.spoiler_text) unless status.local?
|
||||
|
||||
html = status.spoiler_text
|
||||
html = encode(html)
|
||||
html = encode_and_link_urls(html)
|
||||
|
||||
html = simple_format(html, {}, sanitize: false)
|
||||
html = html.delete("\n")
|
||||
html = link_hashtags(html)
|
||||
|
||||
html.html_safe # rubocop:disable Rails/OutputSafety
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue