]> git.mxchange.org Git - friendica.git/commitdiff
Quit on empty uri-id
authorMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 06:45:53 +0000 (06:45 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 06:45:53 +0000 (06:45 +0000)
src/Model/Post/Link.php

index c1cc3ae1e2b59d56d210b6921c788c83b2607692..0a593ddee8797078fd2b85e39330e5b34ee0eaaf 100644 (file)
@@ -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;
                }