Reformatted code

This commit is contained in:
Roland Häder 2022-06-23 16:03:55 +02:00
parent 5699b03e8d
commit fd8f4269ff
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
14 changed files with 138 additions and 155 deletions

View file

@ -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);