Add simple_format to simplified_format (#2198)

lolsob-rspec
178inaba 2017-04-23 21:23:27 +09:00 committed by Eugen
parent 745cdbd6d8
commit a1bc7b0fdc
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ class Formatter
return reformat(account.note) unless account.local? return reformat(account.note) unless account.local?
html = encode_and_link_urls(account.note) html = encode_and_link_urls(account.note)
html = simple_format(html, {}, sanitize: false)
html = html.delete("\n")
html = link_accounts(html) html = link_accounts(html)
html = link_hashtags(html) html = link_hashtags(html)