aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2024-03-20 16:41:26 +0100
committerfenn-cs <fenn25.fn@gmail.com>2024-05-23 14:11:33 +0100
commit59a5b4e0bddbc29d4e16a930972be34873a73e0c (patch)
tree49c2f2dc7ee1573b7e225f951e78e781345f244b /lib/public/Share
parent2fa099a6e1c905abe0d12167082e2946d8065a3a (diff)
downloadnextcloud-server-59a5b4e0bddbc29d4e16a930972be34873a73e0c.tar.gz
nextcloud-server-59a5b4e0bddbc29d4e16a930972be34873a73e0c.zip
fix(shareManager): Respect empty `expireDate` in server
If `expireDate` is an empty string and not `null` then the server should not set a default. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'lib/public/Share')
-rw-r--r--lib/public/Share/IShare.php24
1 files changed, 21 insertions, 3 deletions
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index 0961631ea92..0f4f9561eeb 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -385,21 +385,39 @@ interface IShare {
/**
* Set the expiration date
*
- * @param null|\DateTime $expireDate
+ * @param \DateTime|null $expireDate
* @return \OCP\Share\IShare The modified object
* @since 9.0.0
*/
- public function setExpirationDate($expireDate);
+ public function setExpirationDate(\DateTime|null $expireDate);
/**
* Get the expiration date
*
- * @return null|\DateTime
+ * @return \DateTime|null
* @since 9.0.0
*/
public function getExpirationDate();
/**
+ * Set overwrite flag for falsy expiry date vavlues
+ *
+ * @param bool $noExpirationDate
+ * @return \OCP\Share\IShare The modified object
+ * @since 30.0.0
+ */
+ public function setNoExpirationDate(bool $noExpirationDate);
+
+
+ /**
+ * Get value of overwrite falsy expiry date flag
+ *
+ * @return bool
+ * @since 30.0.0
+ */
+ public function getNoExpirationDate();
+
+ /**
* Is the share expired ?
*
* @return boolean