mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:03:41 +00:00
Standards
This commit is contained in:
parent
69f11c4a84
commit
2c1b33af87
1 changed files with 3 additions and 3 deletions
|
@ -45,12 +45,12 @@ class PushSubscription
|
||||||
|
|
||||||
$auth = [
|
$auth = [
|
||||||
'VAPID' => [
|
'VAPID' => [
|
||||||
'subject' => DI::baseUrl()->getHostname(),
|
'subject' => DI::baseUrl()->getHostname(),
|
||||||
'publicKey' => ModelSubscription::getPublicVapidKey(),
|
'publicKey' => ModelSubscription::getPublicVapidKey(),
|
||||||
'privateKey' => ModelSubscription::getPrivateVapidKey(),
|
'privateKey' => ModelSubscription::getPrivateVapidKey(),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$webPush = new WebPush($auth);
|
$webPush = new WebPush($auth);
|
||||||
|
|
||||||
$report = $webPush->sendOneNotification(
|
$report = $webPush->sendOneNotification(
|
||||||
|
|
Loading…
Reference in a new issue