about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorSorin Davidoi <sorin.davidoi@gmail.com>2017-07-23 23:27:23 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-07-23 23:27:23 +0200
commit9075c90c463d02b789d8dcee69115d11ca203ce3 (patch)
tree195d19d0be5db08a29ff374bd3cb75f84e006328 /app/javascript
parent63a2566007351bc5f8772518b0664343c9095bb6 (diff)
feat: Enable push subscription for mobile devices by default (#4321)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/web_push_subscription.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/web_push_subscription.js b/app/javascript/mastodon/web_push_subscription.js
index 391d3bcec..96ac63b52 100644
--- a/app/javascript/mastodon/web_push_subscription.js
+++ b/app/javascript/mastodon/web_push_subscription.js
@@ -37,7 +37,7 @@ const unsubscribe = ({ registration, subscription }) =>
 
 const sendSubscriptionToBackend = (subscription) =>
   axios.post('/api/web/push_subscriptions', {
-    data: subscription,
+    subscription,
   }).then(response => response.data);
 
 // Last one checks for payload support: https://web-push-book.gauntface.com/chapter-06/01-non-standards-browsers/#no-payload