mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove unecessary row and make compatible with db schema
Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
parent
4f230877e9
commit
45cdb36d5c
3 changed files with 3 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue