aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-06-30 20:04:34 +0200
committerJoas Schilling <coding@schilljs.com>2025-06-30 20:04:34 +0200
commitd4718034c03d65829f72892647e64b56d9e6c41d (patch)
tree9fe80713b3f220d59fcb8b773ef13adfac2d59b5
parentac70e12d10846ba30f487e80715a05d262ee8df2 (diff)
downloadnextcloud-server-bugfix/noid/document-hide-download.tar.gz
nextcloud-server-bugfix/noid/document-hide-download.zip
fix(ROS): Document hide-download option on filesbugfix/noid/document-hide-download
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,