From: Michael Date: Wed, 18 Aug 2021 10:27:45 +0000 (+0000) Subject: Clarify the upcoming functionality X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f6fe7fa25f7c56729440ebf05f1cfb2c635876a;p=friendica.git Clarify the upcoming functionality --- diff --git a/src/Worker/PushSubscription.php b/src/Worker/PushSubscription.php index 60f559bc97..dcdbe2e1bf 100644 --- a/src/Worker/PushSubscription.php +++ b/src/Worker/PushSubscription.php @@ -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'), ];