]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PushSubscription.php
Superfluous todo removed
[friendica.git] / src / Worker / PushSubscription.php
index 48695bfcd0d52b589b7d58d80ca6c2bd9c2c4875..9b22ff4841b3a923437f5adcb2d4f4436eedcb06 100644 (file)
@@ -26,6 +26,7 @@ use Friendica\Content\Text\Plaintext;
 use Friendica\Core\Logger;
 use Friendica\Database\DBA;
 use Friendica\DI;
+use Friendica\Factory\Api\Mastodon\Notification as NotificationFactory;
 use Friendica\Model\Contact;
 use Friendica\Model\Post;
 use Friendica\Model\Subscription as ModelSubscription;
@@ -101,12 +102,11 @@ class PushSubscription
                        ],
                ]);
 
-               // @todo Only used for logging?
                $payload = [
                        'access_token'      => $application_token['access_token'],
                        'preferred_locale'  => $user['language'],
                        'notification_id'   => $nid,
-                       'notification_type' => \Friendica\Factory\Api\Mastodon\Notification::getType($notification),
+                       'notification_type' => NotificationFactory::getType($notification),
                        'icon'              => $actor['thumb'] ?? '',
                        'title'             => $title ?: $l10n->t('Notification from Friendica'),
                        'body'              => $body ?: $l10n->t('Empty Post'),