]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Notifications/Ping.php
Merge pull request #11532 from tobiasd/2022.05-CHANGELOG
[friendica.git] / src / Module / Notifications / Ping.php
index b0412b5dcb7598a66050faea92c25b80f7c5d44d..7dc215826024dd0ccfa6a5b17c631542fec5c9db 100644 (file)
@@ -187,6 +187,9 @@ class Ping extends BaseModule
                        $owner = User::getOwnerDataById(local_user());
 
                        $navNotifications = array_map(function (Entity\Notification $notification) use ($owner) {
+                               if (!DI::notify()->NotifyOnDesktop($notification)) {
+                                       return null;
+                               }
                                if (($notification->type == Post\UserNotification::TYPE_NONE) && in_array($owner['page-flags'], [User::PAGE_FLAGS_NORMAL, User::PAGE_FLAGS_PRVGROUP])) {
                                        return null;
                                }