Catch exception that this generates when there is no result
This commit is contained in:
parent
c5bdf6924d
commit
96e0819f00
@ -276,7 +276,10 @@ function linkback_profile($entry, $mf2, $response, $target) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$profile = Profile::fromUri($author['url'][0]);
|
||||
try {
|
||||
$profile = Profile::fromUri($author['url'][0]);
|
||||
} catch(UnknownUriException $ex) {}
|
||||
|
||||
if(!($profile instanceof Profile)) {
|
||||
$profile = Profile::getKV('profileurl', $author['url'][0]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user