Browse Source

Update ApiV2Controller, add vapid key to instance object. Thanks thisismissem!

Daniel Supernault 1 year ago
parent
commit
4d02d6f12e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Http/Controllers/Api/ApiV2Controller.php

+ 3 - 0
app/Http/Controllers/Api/ApiV2Controller.php

@@ -96,6 +96,9 @@ class ApiV2Controller extends Controller
                     'streaming' => 'wss://' . config('pixelfed.domain.app'),
                     'streaming' => 'wss://' . config('pixelfed.domain.app'),
                     'status' => null
                     'status' => null
                 ],
                 ],
+                'vapid' => [
+                    'public_key' => config('webpush.vapid.public_key'),
+                ],
                 'accounts' => [
                 'accounts' => [
                     'max_featured_tags' => 0,
                     'max_featured_tags' => 0,
                 ],
                 ],