sforkowany z mirror/friendica
Check for post-type key existence in Model\Item::addVisualAttachments
- Address https://github.com/friendica/friendica/issues/10169#issuecomment-8443248002022.09-rc
rodzic
303c9d4a54
commit
52cf924558
|
@ -2864,7 +2864,7 @@ class Item
|
|||
'mime' => $attachment['mimetype'],
|
||||
],
|
||||
]);
|
||||
if ($item['post-type'] == Item::PT_VIDEO) {
|
||||
if (($item['post-type'] ?? null) == Item::PT_VIDEO) {
|
||||
$leading .= $media;
|
||||
} else {
|
||||
$trailing .= $media;
|
||||
|
|
Ładowanie…
Reference in New Issue