Catch exception that this generates when there is no result

This commit is contained in:
Stephen Paul Weber 2015-10-22 19:13:56 +00:00
parent c5bdf6924d
commit 96e0819f00
1 changed files with 4 additions and 1 deletions

View File

@ -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]);
}