From 93309a372869bfdd6e3e3add6fb9034d60f0d2f9 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 6 Jul 2021 06:45:53 +0000 Subject: [PATCH] Quit on empty uri-id --- src/Model/Post/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }