diff options
author | Vitor Mattos <vitor@php.rio> | 2022-06-13 12:22:36 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-06-15 11:58:29 -0300 |
commit | c59b0c2ff7701916fbab4c5d544f43a49acabc34 (patch) | |
tree | 8d7e2e9bf196d6d39d6e87957791f1e263bab5cd /lib/private/Comments/Comment.php | |
parent | 596ead787ba7f7148fceb04de9d7c08cece936bc (diff) | |
download | nextcloud-server-c59b0c2ff7701916fbab4c5d544f43a49acabc34.tar.gz nextcloud-server-c59b0c2ff7701916fbab4c5d544f43a49acabc34.zip |
Add comments expire date
https://github.com/nextcloud/spreed/pull/7327
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/private/Comments/Comment.php')
-rw-r--r-- | lib/private/Comments/Comment.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index 2b338efc75f..0128dc8defd 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -45,6 +45,7 @@ class Comment implements IComment { 'creationDT' => null, 'latestChildDT' => null, 'reactions' => null, + 'expire_date' => null, ]; /** @@ -447,6 +448,21 @@ class Comment implements IComment { } /** + * @inheritDoc + */ + public function setExpireDate(?\DateTime $dateTime): IComment { + $this->data['expire_date'] = $dateTime; + return $this; + } + + /** + * @inheritDoc + */ + public function getExpireDate(): ?\DateTime { + return $this->data['expire_date']; + } + + /** * sets the comment data based on an array with keys as taken from the * database. * |