mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
[ticket/17010] Add column for user push subscriptions
PHPBB3-17010
This commit is contained in:
@@ -168,17 +168,15 @@ class webpush extends \phpbb\notification\method\messenger_base
|
||||
|
||||
// add actual web push data
|
||||
$data['data'] = [
|
||||
'title' => $this->config['sitename'],
|
||||
'body' => $notification->get_title(),
|
||||
'icon' => '', // @todo: to be filled?
|
||||
'image' => '', // @todo: to be filled?
|
||||
'title' => $this->config['sitename'],
|
||||
'url' => $notification->get_url(),
|
||||
'user_id' => $notification->user_id,
|
||||
];
|
||||
$json_data = json_encode($data);
|
||||
|
||||
// @todo: start implementing actual web push code
|
||||
|
||||
foreach ($user_subscriptions as $subscription)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user