]> git.mxchange.org Git - friendica.git/commitdiff
Use the user id instead of "local_user()"
authorMichael <heluecht@pirati.ca>
Sun, 5 Jun 2022 14:22:16 +0000 (14:22 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 5 Jun 2022 14:22:16 +0000 (14:22 +0000)
src/Navigation/Notifications/Repository/Notify.php

index 1966ee4d8a8eb067c9319c967328c5ef6770d857..71d2eba0cf9dcd10b318c6dbf3742aa2fd5600d4 100644 (file)
@@ -675,7 +675,7 @@ class Notify extends BaseRepository
                        return true;
                }
 
-               $notify_type = $this->pConfig->get(local_user(), 'system', 'notify_type', 3 | 72 | 4 | 16 | 32);
+               $notify_type = $this->pConfig->get($Notification->uid, 'system', 'notify_type', 3 | 72 | 4 | 16 | 32);
 
                if (($notify_type & 3) && in_array($Notification->type, [Model\Post\UserNotification::TYPE_EXPLICIT_TAGGED, Model\Post\UserNotification::TYPE_IMPLICIT_TAGGED])) {
                        return true;