about summary refs log tree commit diff
path: root/app/lib/formatter.rb
diff options
context:
space:
mode:
authorStarfall <root@starfall.blue>2020-02-13 17:55:53 -0600
committerStarfall <root@starfall.blue>2020-02-13 17:55:53 -0600
commit5902299384d15249fe4b84b8761d4a49f3c7f6fd (patch)
tree66f1db08a2f6f9ae2254ba7a81b71835039d671e /app/lib/formatter.rb
parent6d24d3bcb84abd04f31da95f97f6d60ef0afdc00 (diff)
parent0cbd6d696b8937066cde297ad2eae4b558353b7c (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r--app/lib/formatter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index f1a751f84..fcc99d009 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -77,6 +77,8 @@ class Formatter
 
   def reformat(html)
     sanitize(html, Sanitize::Config::MASTODON_STRICT)
+  rescue ArgumentError
+    ''
   end
 
   def plaintext(status)