]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
[OStatus] Wrong exception was being caught
authorDiogo Cordeiro <diogo@fc.up.pt>
Wed, 12 Jun 2019 01:20:25 +0000 (02:20 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Wed, 12 Jun 2019 01:20:58 +0000 (02:20 +0100)
plugins/OStatus/OStatusPlugin.php

index 6ee120226fe9a941b1f564748925281ad80aa0a9..afbfa487d342cb10afdf485b11bf6aa81b503134 100644 (file)
@@ -30,7 +30,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
 
 class OStatusPlugin extends Plugin
 {
-    const PLUGIN_VERSION = '2.0.0';
+    const PLUGIN_VERSION = '2.0.1';
 
     /**
      * Hook for RouterInitialized event.
@@ -1269,7 +1269,7 @@ class OStatusPlugin extends Plugin
         }
         try {
             $oprofile = Ostatus_profile::fromProfile($profile);
-        } catch (NoResultException $e) {
+        } catch (Exception $e) {
             // Not a remote Ostatus_profile! Maybe some other network
             // that has imported a non-local user?
             return true;