[OStatus] Wrong exception was being caught

This commit is contained in:
Diogo Cordeiro 2019-06-12 02:20:25 +01:00
parent 81d65afb28
commit 8ea83aac48
1 changed files with 2 additions and 2 deletions

View File

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