aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-07-08 23:11:10 +0200
committerGitHub <noreply@github.com>2022-07-08 23:11:10 +0200
commitc98e44507dcdc533b74740c9f9325a758db4f330 (patch)
tree278a1e686d82e5bf54e01962583816f71b3cd38d /lib/private/Comments
parent927b6d635f3bb8c0c2dc26612b0f3aed6678befe (diff)
parentb9def2f073e43208a16428fcfcbf631a94aefb76 (diff)
downloadnextcloud-server-c98e44507dcdc533b74740c9f9325a758db4f330.tar.gz
nextcloud-server-c98e44507dcdc533b74740c9f9325a758db4f330.zip
Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-row
Remove unecessary row and make compatible with db schema
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Comment.php8
-rw-r--r--lib/private/Comments/Manager.php1
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php
index 0128dc8defd..c481e36f95b 100644
--- a/lib/private/Comments/Comment.php
+++ b/lib/private/Comments/Comment.php
@@ -351,13 +351,9 @@ 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) {
+ public function setLatestChildDateTime(?\DateTime $dateTime = null) {
$this->data['latestChildDT'] = $dateTime;
return $this;
}
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 50b5fabc6a2..b82df1bccc8 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -170,7 +170,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);
}