What is Nostr?
Emelia 👸🏻 /
npub1yd7…hrnr
2024-06-05 23:49:42

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
Author Public Key
npub1yd77yj5aqk7sdlhah7actf57jsg06fu7n79q2nwtwt227f95hzash2hrnr