]> cat aescling's git repositories - mastodon.git/commitdiff
Fix JSON formatting in docs
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 29 Jan 2017 11:55:12 +0000 (12:55 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 29 Jan 2017 11:55:12 +0000 (12:55 +0100)
docs/Using-the-API/Push-notifications.md

index 3ce3e36e2a9ad92237949e09dd1237f3118fcc15..746bf65ef89f312519a799103c8980f007960f74 100644 (file)
@@ -11,7 +11,7 @@ When the app obtains/refreshes a registration ID from Firebase, it needs to send
 The push notifications will be triggered by the notifications of the type you can normally find in `/api/v1/notifications`. However, the push notifications will not contain any inline content. They will contain JSON data of this format ("12" is an example value):
 
 ```json
-{ notification_id: 12 }
+{ "notification_id": 12 }
 ```
 
 Your app can then retrieve the actual content of the notification from the `/api/v1/notifications/12` API endpoint.