diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-27 00:04:12 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-10-28 18:59:36 +0300 |
commit | 591cacd5194243388e7c82249a98fdc6c8dfed41 (patch) | |
tree | b69c70d380b5c72cc985d8618d82aa6776918e13 /lib/Capabilities.php | |
parent | 549d8902c6b86e80162a9fddb00fa03e66e6417b (diff) |
Make max GIF size configurable
Added app setting and capability "max-gif-size".
Added new import for @nextcloud/capabilities.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'lib/Capabilities.php')
-rw-r--r-- | lib/Capabilities.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 3a31ad556..7971a0b45 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -89,6 +89,9 @@ class Capabilities implements IPublicCapability { 'max-length' => ChatManager::MAX_CHAT_LENGTH, ], 'conversations' => [], + 'previews' => [ + 'max-gif-size' => (int)$this->serverConfig->getAppValue('spreed', 'max-gif-size', '3145728') + ], ], ]; |