X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FSubscription.php;h=cb14ae2b5f8939779e1059b23abf6783b4a6ef0a;hb=624e4c192c7f837ac0587a50da6e1409081eb519;hp=31048d963f3350977bfb5a7018adc4f942e4c053;hpb=353cd66b269d0d926eb88223939625e548184ff2;p=friendica.git diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 31048d963f..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) { + if (DI::notify()->NotifyOnDesktop($Notification, $type)) { DI::notify()->createFromNotification($Notification); }