Only set the current notify as seen when user enabled detailed notifications
This commit is contained in:
parent
62358104a2
commit
8fe5da930a
1 changed files with 7 additions and 1 deletions
|
@ -108,7 +108,13 @@ class Notification extends BaseModule
|
||||||
|
|
||||||
if ($request_id) {
|
if ($request_id) {
|
||||||
$notify = DI::notify()->getByID($request_id, local_user());
|
$notify = DI::notify()->getByID($request_id, local_user());
|
||||||
|
|
||||||
|
if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
|
||||||
|
$notify->seen = true;
|
||||||
|
DI::notify()->update($notify);
|
||||||
|
} else {
|
||||||
DI::notify()->setSeen(true, $notify);
|
DI::notify()->setSeen(true, $notify);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($notify->link)) {
|
if (!empty($notify->link)) {
|
||||||
System::externalRedirect($notify->link);
|
System::externalRedirect($notify->link);
|
||||||
|
|
Loading…
Reference in a new issue