From 8ea83aac48545e2cdf81b4787b14b86fe819aa19 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 12 Jun 2019 02:20:25 +0100 Subject: [PATCH] [OStatus] Wrong exception was being caught --- plugins/OStatus/OStatusPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;