1
0
Fork 0

Merge remote-tracking branch 'upstream/2021.06-rc' into forum-handling

This commit is contained in:
Michael 2021-06-05 06:14:06 +00:00
commit 8a9f633ce2
9 changed files with 122 additions and 21 deletions

View file

@ -2882,7 +2882,7 @@ class Item
'mime' => $attachment['mimetype'],
],
]);
if ($item['post-type'] == Item::PT_AUDIO) {
if (($item['post-type'] ?? null) == Item::PT_AUDIO) {
$leading .= $media;
} else {
$trailing .= $media;