]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Linkback/lib/util.php
Catch exception that this generates when there is no result
[quix0rs-gnu-social.git] / 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]);
     }