From e7b861388d0b209b44f30202cc2767ba87ad8118 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 10 May 2024 05:42:45 +0000 Subject: [PATCH] Issue 14132: Title for videos --- src/Model/Item.php | 15 ++++++++------- view/templates/video_top.tpl | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 34208fead8..2990461627 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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) { diff --git a/view/templates/video_top.tpl b/view/templates/video_top.tpl index b3cf049e71..4e85198abe 100644 --- a/view/templates/video_top.tpl +++ b/view/templates/video_top.tpl @@ -1,6 +1,6 @@
{{* set preloading to none to lessen the load on the server *}} -