]> git.mxchange.org Git - friendica.git/commitdiff
Prevent a notice ... again
authorMichael <heluecht@pirati.ca>
Fri, 4 Jan 2019 15:34:53 +0000 (15:34 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 4 Jan 2019 15:34:53 +0000 (15:34 +0000)
src/Protocol/OStatus.php

index 1a6f748d1698cf4b0a30e840d744da9588fd1a9b..1a6ce231d1f386e9ddddf26ca24660c6cac0a136 100644 (file)
@@ -1228,7 +1228,7 @@ class OStatus
        {
                $siteinfo = BBCode::getAttachedData($body);
 
-               if (($siteinfo["type"] == "photo")) {
+               if (($siteinfo["type"] == "photo") && (!empty($siteinfo["preview"]) || !empty($siteinfo["image"]))) {
                        if (isset($siteinfo["preview"])) {
                                $preview = $siteinfo["preview"];
                        } else {