Check for post-type key existence in Model\Item::addVisualAttachments
- Address https://github.com/friendica/friendica/issues/10169#issuecomment-844324800
This commit is contained in:
parent
303c9d4a54
commit
52cf924558
|
@ -2864,7 +2864,7 @@ class Item
|
||||||
'mime' => $attachment['mimetype'],
|
'mime' => $attachment['mimetype'],
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
if ($item['post-type'] == Item::PT_VIDEO) {
|
if (($item['post-type'] ?? null) == Item::PT_VIDEO) {
|
||||||
$leading .= $media;
|
$leading .= $media;
|
||||||
} else {
|
} else {
|
||||||
$trailing .= $media;
|
$trailing .= $media;
|
||||||
|
|
Loading…
Reference in a new issue