mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #35837 from nextcloud/backport/35814/stable24
[stable24] Fix parameter type for EntityCollection::setReadMarker in comments app
This commit is contained in:
commit
2dbf69409b
1 changed files with 2 additions and 5 deletions
|
|
@ -163,12 +163,9 @@ class EntityCollection extends RootCollection implements IProperties {
|
|||
|
||||
/**
|
||||
* Sets the read marker to the specified date for the logged in user
|
||||
*
|
||||
* @param \DateTime $value
|
||||
* @return bool
|
||||
*/
|
||||
public function setReadMarker($value) {
|
||||
$dateTime = new \DateTime($value);
|
||||
public function setReadMarker(?string $value): bool {
|
||||
$dateTime = new \DateTime($value ?? 'now');
|
||||
$user = $this->userSession->getUser();
|
||||
$this->commentsManager->setReadMark($this->name, $this->id, $dateTime, $user);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue