API: Set "dismissed" instead of "seen"

This commit is contained in:
Michael 2021-12-28 20:38:18 +00:00
parent c371d2ec82
commit f7e859ec2c
10 changed files with 36 additions and 13 deletions

View file

@ -42,7 +42,7 @@ class Dismiss extends BaseApi
}
$Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
$Notification->setSeen();
$Notification->setDismissed();
DI::notification()->save($Notification);
System::jsonExit([]);