summaryrefslogtreecommitdiffstats
path: root/lib/Config.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-27 14:45:53 +0200
committerJoas Schilling <coding@schilljs.com>2021-10-27 15:14:09 +0200
commit82e20cc783149a83f43f8bd125087543eee04e68 (patch)
tree761f9f3bf55c3503c415caa80cc497b840a77337 /lib/Config.php
parent483c3a0c8e674ff5a1aad2d5a711d1a21706f598 (diff)
Enable limitation by default as it increases performance
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Config.php')
-rw-r--r--lib/Config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Config.php b/lib/Config.php
index 24555761c..6780185c7 100644
--- a/lib/Config.php
+++ b/lib/Config.php
@@ -394,8 +394,8 @@ class Config {
return hash_equals($hash, substr($ticket, $lastColon + 1));
}
- public function getGridVideosLimit(): string {
- return $this->config->getAppValue('spreed', 'grid_videos_limit', '0');
+ public function getGridVideosLimit(): int {
+ return (int) $this->config->getAppValue('spreed', 'grid_videos_limit', '19'); // 5*4 - self
}
public function getGridVideosLimitEnforced(): bool {