]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Catch exception that this generates when there is no result
authorStephen Paul Weber <singpolyma@singpolyma.net>
Thu, 22 Oct 2015 19:13:56 +0000 (19:13 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Thu, 12 Nov 2015 19:06:16 +0000 (19:06 +0000)
plugins/Linkback/lib/util.php

index 16454b5873282e8bee9a5a2d5eddd9e523858a75..cf3f55c5ff00f24ba2ac103989e055a6d26a6ad1 100644 (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]);
     }