]> git.mxchange.org Git - friendica.git/commitdiff
Only set the current notify as seen when user enabled detailed notifications
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Nov 2020 16:41:21 +0000 (11:41 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Nov 2020 16:41:21 +0000 (11:41 -0500)
src/Module/Notifications/Notification.php

index 2dc008248e703d2d2f5757a9dbe00a212f356807..4566c4223e9a8b91ca9760dcf2b0b1682e1d3a83 100644 (file)
@@ -108,7 +108,13 @@ class Notification extends BaseModule
 
                if ($request_id) {
                        $notify = DI::notify()->getByID($request_id, local_user());
-                       DI::notify()->setSeen(true, $notify);
+
+                       if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
+                               $notify->seen = true;
+                               DI::notify()->update($notify);
+                       } else {
+                               DI::notify()->setSeen(true, $notify);
+                       }
 
                        if (!empty($notify->link)) {
                                System::externalRedirect($notify->link);