diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-27 15:45:53 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-27 16:14:09 +0300 |
commit | 82e20cc783149a83f43f8bd125087543eee04e68 (patch) | |
tree | 761f9f3bf55c3503c415caa80cc497b840a77337 /lib | |
parent | 483c3a0c8e674ff5a1aad2d5a711d1a21706f598 (diff) |
Enable limitation by default as it increases performance
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Config.php | 4 |
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 { |