mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Notifications cleared for a whole thread in case of one mark seen
This commit is contained in:
parent
4ab893a561
commit
7909d9c417
4 changed files with 32 additions and 35 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Friendica\Model;
|
||||
|
||||
use Exception;
|
||||
use Friendica\BaseModel;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Database\Database;
|
||||
|
@ -50,24 +49,6 @@ class Notify extends BaseModel
|
|||
$this->setMsgCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the notification as seen
|
||||
*
|
||||
* @param bool $seen true, if seen
|
||||
*
|
||||
* @return bool True, if the seen state could be saved
|
||||
*/
|
||||
public function setSeen(bool $seen = true)
|
||||
{
|
||||
$this->seen = $seen;
|
||||
try {
|
||||
return $this->repo->update($this);
|
||||
} catch (Exception $e) {
|
||||
$this->logger->warning('Update failed.', ['$this' => $this, 'exception' => $e]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the pre-formatted name (caching)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue