]> git.mxchange.org Git - friendica.git/commitdiff
Clarify the upcoming functionality
authorMichael <heluecht@pirati.ca>
Wed, 18 Aug 2021 10:27:45 +0000 (10:27 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 18 Aug 2021 10:27:45 +0000 (10:27 +0000)
src/Worker/PushSubscription.php

index 60f559bc97a297c2e3ca333fdc9be255f4c09432..dcdbe2e1bfd042990ea3327addf393ba84596512 100644 (file)
@@ -82,6 +82,9 @@ class PushSubscription
                        }
                }
 
+               // @todo Add a good title here, see the functionality in enotify.php
+               $title = '';
+
                $push = Subscription::create([
                        'contentEncoding' => 'aesgcm',
                        'endpoint'        => $subscription['endpoint'],
@@ -97,7 +100,7 @@ class PushSubscription
                        'notification_id'   => $nid,
                        'notification_type' => $type,
                        'icon'              => $actor['thumb'] ?? '',
-                       'title'             => $l10n->t('Notification from Friendica'), // @todo Replace it with a speaking title
+                       'title'             => $title ?: $l10n->t('Notification from Friendica'),
                        'body'              => $body ?: $l10n->t('Empty Post'),
                ];