mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Set default value for max video height
This commit is contained in:
parent
1b00b91767
commit
67696d08da
2 changed files with 5 additions and 1 deletions
|
@ -3644,7 +3644,7 @@ class Item
|
|||
|
||||
if ($PostMedia->mimetype->type == 'video') {
|
||||
if (($PostMedia->height ?? 0) > ($PostMedia->width ?? 0)) {
|
||||
$height = min(DI::config()->get('system', 'max_video_height'), $PostMedia->height);
|
||||
$height = min(DI::config()->get('system', 'max_video_height') ?: '100%', $PostMedia->height);
|
||||
$width = 'auto';
|
||||
} else {
|
||||
$height = 'auto';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue