mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Reformatted code
This commit is contained in:
parent
5699b03e8d
commit
fd8f4269ff
14 changed files with 138 additions and 155 deletions
|
@ -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;
|
||||
|
@ -106,7 +107,7 @@ class PushSubscription
|
|||
'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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue