]> cat aescling's git repositories - mastodon.git/commitdiff
Update OStatus2 to handle malformed Salmon without raising unexpected exceptions
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 12:46:34 +0000 (14:46 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 12:47:38 +0000 (14:47 +0200)
Gemfile.lock
app/services/process_interaction_service.rb

index 82e3bdaf4f7011218cbff8a46231a99bb0c3616a..8e33e85ce9bf175899af58d46898539d1cbdcb6b 100644 (file)
@@ -166,12 +166,11 @@ GEM
     minitest (5.9.0)
     multi_json (1.12.1)
     nio4r (1.2.1)
-    nokogiri (1.6.8)
+    nokogiri (1.6.8.1)
       mini_portile2 (~> 2.1.0)
-      pkg-config (~> 1.1.7)
     oj (2.17.3)
     orm_adapter (0.5.0)
-    ostatus2 (0.3.1)
+    ostatus2 (0.3.2)
       addressable (~> 2.4)
       http (~> 2.0)
       nokogiri (~> 1.6)
@@ -187,7 +186,6 @@ GEM
     parser (2.3.1.2)
       ast (~> 2.2)
     pg (0.18.4)
-    pkg-config (1.1.7)
     powerpack (0.1.1)
     pry (0.10.4)
       coderay (~> 1.1.0)
index 31c7c46a53a53e39620a277f00eb170520bd7f12..0768579ef415874b369d7cfb53299b1daa115862 100644 (file)
@@ -35,7 +35,7 @@ class ProcessInteractionService < BaseService
         delete_post!(xml, account)
       end
     end
-  rescue Goldfinger::Error, HTTP::Error
+  rescue Goldfinger::Error, HTTP::Error, OStatus2::BadSalmonError
     nil
   end