Issue 14132: Title for videos

This commit is contained in:
Michael 2024-05-10 05:42:45 +00:00
parent 765af10f00
commit e7b861388d
2 changed files with 9 additions and 8 deletions

View file

@ -3688,13 +3688,14 @@ class Item
/// @todo Move the template to /content as well
$media = Renderer::replaceMacros(Renderer::getMarkupTemplate('video_top.tpl'), [
'$video' => [
'id' => $PostMedia->id,
'src' => (string)$PostMedia->url,
'name' => $PostMedia->name ?: $PostMedia->url,
'preview' => $preview_url,
'mime' => (string)$PostMedia->mimetype,
'height' => $height,
'width' => $width,
'id' => $PostMedia->id,
'src' => (string)$PostMedia->url,
'name' => $PostMedia->name ?: $PostMedia->url,
'preview' => $preview_url,
'mime' => (string)$PostMedia->mimetype,
'height' => $height,
'width' => $width,
'description' => $PostMedia->description,
],
]);
if (($item['post-type'] ?? null) == Item::PT_VIDEO) {