Fix remote profile being displayed in HTML on remote_follow (#5249)
This commit is contained in:
parent
d5f490b1a2
commit
d8b2f89d33
|
@ -50,7 +50,7 @@ class Formatter
|
||||||
end
|
end
|
||||||
|
|
||||||
def simplified_format(account)
|
def simplified_format(account)
|
||||||
return reformat(account.note) unless account.local?
|
return reformat(account.note).html_safe unless account.local? # rubocop:disable Rails/OutputSafety
|
||||||
|
|
||||||
html = encode_and_link_urls(account.note)
|
html = encode_and_link_urls(account.note)
|
||||||
html = simple_format(html, {}, sanitize: false)
|
html = simple_format(html, {}, sanitize: false)
|
||||||
|
|
Reference in New Issue