]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PushSubscription.php
Use a constant for the avatar base path
[friendica.git] / src / Worker / PushSubscription.php
index ae34abc8775c56377215075eb9fd83da7a46fa67..45ecb62291a08a2e7fcc6e39a2045967d40a5fe3 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);
                $title = $message['plain'] ?: '';
 
                $push = Subscription::create([