Fix malformed HTML causing uncaught error (#13042)
Fix OEmbed preview API leaking existence of private statuses (see #12930)
This commit is contained in:
parent
02236332ba
commit
a64973aecf
2 changed files with 13 additions and 5 deletions
|
@ -46,6 +46,8 @@ class Formatter
|
|||
|
||||
def reformat(html)
|
||||
sanitize(html, Sanitize::Config::MASTODON_STRICT)
|
||||
rescue ArgumentError
|
||||
''
|
||||
end
|
||||
|
||||
def plaintext(status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue