X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FSubscription.php;h=cb14ae2b5f8939779e1059b23abf6783b4a6ef0a;hb=624e4c192c7f837ac0587a50da6e1409081eb519;hp=c6c57c732835da504b97cb9c6f95215636456b5a;hpb=7a2d5f6a8eea1babea3450af0f62f3f692f91348;p=friendica.git diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index c6c57c7328..cb14ae2b5f 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -1,6 +1,6 @@ get($Notification->uid, 'system', 'notify_like') && ($type == Notification::TYPE_LIKE)) { - $desktop_notification = true; - } - - if (DI::pConfig()->get($Notification->uid, 'system', 'notify_announce') && ($type == Notification::TYPE_RESHARE)) { - $desktop_notification = true; - } - - if ($desktop_notification) { - notification_from_array($Notification); + if (DI::notify()->NotifyOnDesktop($Notification, $type)) { + DI::notify()->createFromNotification($Notification); } if (empty($type)) {