aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-06-30 20:04:34 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2025-07-02 19:46:30 +0200
commitb1e9fe6ff4936a38814601b782c81958649af522 (patch)
tree02f951f5422ff17890f374ec3d9fb68339e715c9
parent009763b1431f0d2174debc5ebf27a005749090eb (diff)
downloadnextcloud-server-backport/53735/stable31.tar.gz
nextcloud-server-backport/53735/stable31.zip
fix(ROS): Document hide-download option on filesbackport/53735/stable31
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/public/RichObjectStrings/Definitions.php6
-rw-r--r--lib/public/RichObjectStrings/IValidator.php1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php
index 5974659e16b..8019118a59e 100644
--- a/lib/public/RichObjectStrings/Definitions.php
+++ b/lib/public/RichObjectStrings/Definitions.php
@@ -374,6 +374,12 @@ class Definitions {
'description' => 'The blurhash of the image',
'example' => 'LEHV9uae2yk8pyo0adR*.7kCMdnj',
],
+ 'hide-download' => [
+ 'since' => '31.0.5',
+ 'required' => false,
+ 'description' => 'Whether the download option should be hidden. If not set to `yes` the option can be shown',
+ 'example' => 'yes',
+ ],
],
],
'forms-form' => [
diff --git a/lib/public/RichObjectStrings/IValidator.php b/lib/public/RichObjectStrings/IValidator.php
index 3bf83582adc..fc486663c73 100644
--- a/lib/public/RichObjectStrings/IValidator.php
+++ b/lib/public/RichObjectStrings/IValidator.php
@@ -26,6 +26,7 @@ namespace OCP\RichObjectStrings;
* path?: string,
* mimetype?: string,
* 'preview-available'?: 'yes'|'no',
+ * 'hide-download'?: 'yes'|'no',
* mtime?: string,
* latitude?: string,
* longitude?: string,