Emelia 👸🏻 on Nostr: Just landed two changes to Mastodon, particularly around Web Push Subscriptions: - ...
Just landed two changes to Mastodon, particularly around Web Push Subscriptions:
- https://github.com/mastodon/mastodon/pull/30542
- https://github.com/mastodon/mastodon/pull/30540
We'll now throw errors when doing `POST /api/v1/push/subscription` if the endpoint is an invalid URL, or if the keys values can't be used to encrypt a message.
That prevents you from registering a push subscription that just wouldn't work. We previously lacked input validation here.
#mastodev #mastoapi
- https://github.com/mastodon/mastodon/pull/30542
- https://github.com/mastodon/mastodon/pull/30540
We'll now throw errors when doing `POST /api/v1/push/subscription` if the endpoint is an invalid URL, or if the keys values can't be used to encrypt a message.
That prevents you from registering a push subscription that just wouldn't work. We previously lacked input validation here.
#mastodev #mastoapi