gotosocial/docs
Vyr Cossont 5b765d734e
[feature] Push notifications (#3587)
* Update push subscription API model to be Mastodon 4.0 compatible

* Add webpush-go dependency

# Conflicts:
#	go.sum

* Single-row table for storing instance's VAPID key pair

* Generate VAPID key pair during startup

* Add VAPID public key to instance info API

* Return VAPID public key when registering an app

* Store Web Push subscriptions in DB

* Add Web Push sender (similar to email sender)

* Add no-op push senders to most processor tests

* Test Web Push notifications from workers

* Delete Web Push subscriptions when account is deleted

* Implement push subscription API

* Linter fixes

* Update Swagger

* Fix enum to int migration

* Fix GetVAPIDKeyPair

* Create web push subscriptions table with indexes

* Log Web Push server error messages

* Send instance URL as Web Push JWT subject

* Accept any 2xx code as a success

* Fix malformed VAPID sub claim

* Use packed notification flags

* Remove unused date columns

* Add notification type for update notifications

Not used yet

* Make GetVAPIDKeyPair idempotent

and remove PutVAPIDKeyPair

* Post-rebase fixes

* go mod tidy

* Special-case 400 errors other than 408/429

Most client errors should remove the subscription.

* Improve titles, trim body to reasonable length

* Disallow cleartext HTTP for Web Push servers

* Fix lint

* Remove redundant index on unique column

Also removes redundant unique and notnull tags on ID column since these are implied by pk

* Make realsender.go more readable

* Use Tobi's style for wrapping errors

* Restore treating all 5xx codes as temporary problems

* Always load target account settings

* Stub `policy` and `standard`

* webpush.Sender: take type converter as ctor param

* Move webpush.MockSender and noopSender into testrig
2025-01-23 16:47:30 -08:00
..
.cache/plugin/social [chore] Vendor mkdocs fonts; update docs dependencies (#2789) 2024-03-29 10:52:46 +01:00
admin [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
advanced [docs] add zh docs (#3507) 2024-11-05 14:36:43 +01:00
api [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
configuration [feature] Add warning about trusted-proxies to make config easier (#3675) 2025-01-23 15:48:09 +01:00
federation [feature] Serve bot accounts over AP as Service instead of Person (#3672) 2025-01-23 18:18:23 +01:00
getting_started [feature] Add warning about trusted-proxies to make config easier (#3675) 2025-01-23 15:48:09 +01:00
locales/zh [docs/zh] Update zh docs: synced to da4db81bcf (#3589) 2024-12-02 10:48:53 +01:00
overrides/public [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
user_guide [feature] Allow partial-word hashtags using non-breaking spaces (#3606) 2024-12-08 16:03:00 +01:00
environment.yml [docs] Rework README a bit, import into docs (#3006) 2024-06-13 23:21:41 +02:00
faq.md [chore] Replace Semaphore recommendation with Pinafore. (#3586) 2024-12-02 10:47:05 +01:00
index.md [docs] Rework README a bit, import into docs (#3006) 2024-06-13 23:21:41 +02:00
swagger.go [feature] Filters v1 (#2594) 2024-03-06 11:15:58 +01:00