Merge pull request #6377 from annando/ostatus-notice
Prevent a notice ... again
This commit is contained in:
commit
fc87c51bb4
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue