From 6f6fe7fa25f7c56729440ebf05f1cfb2c635876a Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 18 Aug 2021 10:27:45 +0000 Subject: [PATCH] Clarify the upcoming functionality --- src/Worker/PushSubscription.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'), ];