diff options
author | Vitor Mattos <vitor@php.rio> | 2022-06-13 13:35:34 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-06-13 13:35:34 -0300 |
commit | 45cdb36d5c96b9beb839881b6eee42aea6c54d79 (patch) | |
tree | 26659741c5d74f6152db6daba28c7542c52fa3d6 /lib | |
parent | 4f230877e92571a4ba5708ad6ad0e2bf0d620e74 (diff) | |
download | nextcloud-server-45cdb36d5c96b9beb839881b6eee42aea6c54d79.tar.gz nextcloud-server-45cdb36d5c96b9beb839881b6eee42aea6c54d79.zip |
Remove unecessary row and make compatible with db schema
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Comments/Comment.php | 6 | ||||
-rw-r--r-- | lib/private/Comments/Manager.php | 1 | ||||
-rw-r--r-- | lib/public/Comments/IComment.php | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index 2b338efc75f..b19a901f1b0 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -350,11 +350,7 @@ class Comment implements IComment { } /** - * sets the date of the most recent child - * - * @param \DateTime $dateTime - * @return IComment - * @since 9.0.0 + * @inheritDoc */ public function setLatestChildDateTime(\DateTime $dateTime = null) { $this->data['latestChildDT'] = $dateTime; diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index b7532222c33..f09689867c8 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -167,7 +167,6 @@ class Manager implements ICommentsManager { if ($comment->getId() === '') { $comment->setChildrenCount(0); - $comment->setLatestChildDateTime(new \DateTime('0000-00-00 00:00:00', new \DateTimeZone('UTC'))); $comment->setLatestChildDateTime(null); } diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index 8465eaf49f4..279fc6c907e 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -230,11 +230,11 @@ interface IComment { /** * sets the date of the most recent child * - * @param \DateTime $dateTime + * @param \DateTime|null $dateTime * @return IComment * @since 9.0.0 */ - public function setLatestChildDateTime(\DateTime $dateTime); + public function setLatestChildDateTime(\DateTime $dateTime = null); /** * returns the object type the comment is attached to |