X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FSubscription.php;h=26617f941a3f4ad6ba48c64e04ce5331204fed1e;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=e5305378e35945f8148efd160ae659b81d49ec44;hpb=c6c936a80ff947ae77a90ad910c8dc03e10f6dbd;p=friendica.git diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index e5305378e3..26617f941a 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -25,6 +25,7 @@ use Friendica\Core\Logger; use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\DI; +use Friendica\Factory\Api\Mastodon\Notification as NotificationFactory; use Friendica\Navigation\Notifications\Entity; use Friendica\Object\Api\Mastodon\Notification; use Minishlink\WebPush\VAPID; @@ -133,12 +134,12 @@ class Subscription /** * Prepare push notification * - * @param Notification $Notification Notification instance + * @param Notification $Notification * @return void */ public static function pushByNotification(Entity\Notification $notification) { - $type = \Friendica\Factory\Api\Mastodon\Notification::getType($notification); + $type = NotificationFactory::getType($notification); if (DI::notify()->NotifyOnDesktop($notification, $type)) { DI::notify()->createFromNotification($notification);