From: Michael Date: Tue, 6 Jul 2021 06:45:53 +0000 (+0000) Subject: Quit on empty uri-id X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=93309a372869bfdd6e3e3add6fb9034d60f0d2f9;p=friendica.git Quit on empty uri-id --- diff --git a/src/Model/Post/Link.php b/src/Model/Post/Link.php index c1cc3ae1e2..0a593ddee8 100644 --- a/src/Model/Post/Link.php +++ b/src/Model/Post/Link.php @@ -35,7 +35,7 @@ class Link { public static function getByLink(int $uri_id, string $url, $size = '') { - if (empty($url) || Proxy::isLocalImage($url)) { + if (empty($uri_id) || empty($url) || Proxy::isLocalImage($url)) { return $url; }