]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PushSubscription.php
Replace remaining instances of DBA::update('contact') with Contact::update()
[friendica.git] / src / Worker / PushSubscription.php
index ae34abc8775c56377215075eb9fd83da7a46fa67..7b9f5acbd9adfeb82553b81e8ccf4e78be959648 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -82,7 +82,7 @@ class PushSubscription
                        }
                }
 
-               $message = (new Notifications\Factory\Notification(DI::logger()))->getMessageFromNotification($Notification, DI::baseUrl(), $l10n);
+               $message = DI::notificationFactory()->getMessageFromNotification($Notification, DI::baseUrl(), $l10n);
                $title = $message['plain'] ?: '';
 
                $push = Subscription::create([