Skip to content

Commit 7bca72c

Browse files
authored
Merge pull request #28096 from nextcloud/backport/27674/stable20
[stable20] hide download button for public preview of audio files
2 parents a26a2a6 + f4e8cd2 commit 7bca72c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/files_sharing/templates/public.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
<?php else: ?>
6464
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?>
6565
<div id="imgframe">
66-
<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px">
66+
<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"
67+
<?php // See https://github.com/nextcloud/server/pull/27674?>
68+
<?php if ($_['hideDownload']) { ?>controlsList="nodownload" <?php } ?>>
6769
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
6870
</audio>
6971
</div>

0 commit comments

Comments
 (0)