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; }