X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FSubscription.php;h=cb14ae2b5f8939779e1059b23abf6783b4a6ef0a;hb=624e4c192c7f837ac0587a50da6e1409081eb519;hp=0d8f346d18281dfd80035b4b1c0c14c2f7fe2768;hpb=322b7c856ca9ba53bd9c7da50dd5c1e3c9197d56;p=friendica.git diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 0d8f346d18..cb14ae2b5f 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -143,17 +143,7 @@ class Subscription { $type = \Friendica\Factory\Api\Mastodon\Notification::getType($Notification); - $desktop_notification = !in_array($type, [Notification::TYPE_RESHARE, Notification::TYPE_LIKE]); - - if (DI::pConfig()->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); }