fixed undefined addr

This commit is contained in:
Pablo Ferreiro
2024-08-21 03:28:34 +02:00
parent 03002ba835
commit 3b441c2683
+1 -1
View File
@@ -32,7 +32,7 @@
{if isset($item->video->playAddr) && $item->video->playAddr !== ""}
<!-- Download links, not shown if item is a gallery -->
<p class="has-text-centered"><b>Download video</b></p>
{include './common/download.latte', id: $item->id, uniqueId: $item->author->uniqueId, playAddr: $item->video->playAddr, downloadAddr: $item->video->downloadAddr}
{include './common/download.latte', id: $item->id, uniqueId: $item->author->uniqueId, playAddr: $item->video->playAddr, downloadAddr: $item->video->downloadAddr ?? $item->video->playAddr}
{/if}
<p class="has-text-centered"><b>Share link</b></p>
{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}