mirror of
https://github.com/friendica/friendica
synced 2025-04-22 16:30:11 +00:00
Rename Repository\Notify->NotifyOnDesktop to shouldShowOnDesktop
- New name better reflect the behavior
This commit is contained in:
parent
891f686dcf
commit
fa123bd765
3 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ class Ping extends BaseModule
|
|||
$owner = User::getOwnerDataById(DI::userSession()->getLocalUserId());
|
||||
|
||||
$navNotifications = array_map(function (Entity\Notification $notification) use ($owner) {
|
||||
if (!DI::notify()->NotifyOnDesktop($notification)) {
|
||||
if (!DI::notify()->shouldShowOnDesktop($notification)) {
|
||||
return null;
|
||||
}
|
||||
if (($notification->type == Post\UserNotification::TYPE_NONE) && in_array($owner['page-flags'], [User::PAGE_FLAGS_NORMAL, User::PAGE_FLAGS_PRVGROUP])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue