From d8d5031935d931d1919966622dc278ff91478c50 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 4 Jan 2019 15:34:53 +0000 Subject: [PATCH] Prevent a notice ... again --- src/Protocol/OStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 1a6f748d1..1a6ce231d 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -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 {