From 96e0819f00ac0c2f9ea3fa35d58e50b4c3a9b49b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 22 Oct 2015 19:13:56 +0000 Subject: [PATCH] Catch exception that this generates when there is no result --- plugins/Linkback/lib/util.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index 16454b5873..cf3f55c5ff 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -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]); } -- 2.39.2