[ActivityPub] Fix an unhandled error in onStartGetProfileFromURI
This commit is contained in:
parent
4eb4a2de00
commit
87b0b493eb
@ -762,8 +762,7 @@ class ActivityPubPlugin extends Plugin
|
|||||||
public function onStartGetProfileFromURI($uri, &$profile)
|
public function onStartGetProfileFromURI($uri, &$profile)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$explorer = new Activitypub_explorer();
|
$profile = Activitypub_explorer::get_profile_from_url($uri);
|
||||||
$profile = $explorer->lookup($uri)[0];
|
|
||||||
return false;
|
return false;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return true; // It's not an ActivityPub profile as far as we know, continue event handling
|
return true; // It's not an ActivityPub profile as far as we know, continue event handling
|
||||||
|
Loading…
Reference in New Issue
Block a user