]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PushSubscription.php
avoide useless cURL request to the profile page
[friendica.git] / src / Worker / PushSubscription.php
index 9b22ff4841b3a923437f5adcb2d4f4436eedcb06..e6876ad3eb21bd0ca2e9c90ff2404a80deb0bc08 100644 (file)
@@ -31,7 +31,6 @@ use Friendica\Model\Contact;
 use Friendica\Model\Post;
 use Friendica\Model\Subscription as ModelSubscription;
 use Friendica\Model\User;
-use Friendica\Navigation\Notifications;
 use Friendica\Network\HTTPException\NotFoundException;
 use Minishlink\WebPush\WebPush;
 use Minishlink\WebPush\Subscription;
@@ -91,7 +90,7 @@ class PushSubscription
                }
 
                $message = DI::notificationFactory()->getMessageFromNotification($notification);
-               $title = $message['plain'] ?: '';
+               $title = $message['plain'] ?? '';
 
                $push = Subscription::create([
                        'contentEncoding' => 'aesgcm',