From: Diogo Cordeiro Date: Wed, 12 Jun 2019 01:20:25 +0000 (+0100) Subject: [OStatus] Wrong exception was being caught X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ea83aac48545e2cdf81b4787b14b86fe819aa19;p=quix0rs-gnu-social.git [OStatus] Wrong exception was being caught --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 6ee120226f..afbfa487d3 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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;