Merge pull request #15079 from annando/issue-15047

Issue 15047: Set the notification to seen
pull/15080/head
Philipp 2025-08-07 07:42:28 +02:00 zatwierdzone przez GitHub
commit 4377d510f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -144,13 +144,13 @@ class Notification extends BaseModule
$Notify->setSeen();
$this->notifyRepo->save($Notify);
} else {
if ($Notify->uriId) {
$this->notificationRepo->setAllSeenForUser($Notify->uid, ['target-uri-id' => $Notify->uriId]);
}
$this->notifyRepo->setAllSeenForRelatedNotify($Notify);
}
if ($Notify->uriId) {
$this->notificationRepo->setAllSeenForUser($Notify->uid, ['target-uri-id' => $Notify->uriId]);
}
if ((string)$Notify->link) {
System::externalRedirect($Notify->link);
}