gotosocial/internal
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
..
admin [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
ap [feature] Serve bot accounts over AP as Service instead of Person (#3672) 2025-01-23 18:18:23 +01:00
api [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
cache [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
cleaner [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
config [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
db [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
email [bugfix/email] Don't use plainAuth when no smtp username/password provided (#3332) 2024-09-23 16:07:13 +02:00
federation [feature] Serve bot accounts over AP as Service instead of Person (#3672) 2025-01-23 18:18:23 +01:00
filter [chore] replace statuses.updated_at column with statuses.edited_at (#3636) 2025-01-08 11:29:23 +01:00
gtscontext [bugfix] httpclient not signing subsequent redirect requests (#2798) 2024-04-02 13:12:26 +02:00
gtserror [bugfix] Return 501 (not implemented) if user tries to schedule post (#3395) 2024-10-05 19:14:53 +02:00
gtsmodel [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
headerfilter [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
httpclient [chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420) 2024-10-16 14:13:58 +02:00
id [feature] Create/update/remove domain permission subscriptions (#3623) 2025-01-05 13:20:33 +01:00
iotools [performance] update storage backend and make use of seek syscall when available (#2924) 2024-05-22 11:46:24 +02:00
language [feature] Set/show instance language(s); show post language on frontend (#2362) 2023-11-17 11:35:28 +01:00
log [performance] minimise log field allocations (#3529) 2024-11-11 15:45:19 +00:00
media [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
messages [bugfix] incorrect AP serialize function used serializing worker data (#3196) 2024-08-12 18:23:24 +02:00
metrics [chore] Update usage of OTEL libraries (#2725) 2024-03-11 15:34:34 +01:00
middleware [chore] Upgrade golangci-lint, ignore existing int overflow warnings (#3420) 2024-10-16 14:13:58 +02:00
oauth [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
oidc
paging [bugfix] flaky paging test (#2888) 2024-05-01 13:29:42 +02:00
processing [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
queue [performance] update go-structr and go-mutexes with memory usage improvements (#2909) 2024-05-13 08:05:46 +00:00
regexes [feature] Allow emoji shortcode to be 1-character length (#3556) 2024-11-21 12:13:55 +01:00
router [chore] ensure consistent caller name fetching regardless of compiler inlining (#3323) 2024-09-20 13:30:33 +00:00
scheduler [feature] add support for polls + receiving federated status edits (#2330) 2023-11-08 14:32:17 +00:00
state [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
storage [bugfix] s3 media uploaded without content-type (#3353) 2024-09-26 14:43:10 +02:00
stream [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
subscriptions [bugfix] Store LastModified for domain perm subs + send as If-Modified-Since (#3655) 2025-01-20 10:56:00 +01:00
text [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
timeline [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
tracing [chore] Update usage of OTEL libraries (#2725) 2024-03-11 15:34:34 +01:00
trans [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
transport [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
typeutils [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
uris [feature] Interaction requests client api + settings panel (#3215) 2024-08-24 11:49:37 +02:00
util [chore] better dns validation (#3644) 2025-01-14 14:23:18 +00:00
validate [feature] Add global instance CSS customization setting (#3352) 2024-12-02 12:24:48 +01:00
web [chore] Update robots.txt with more AI bots (#3634) 2025-01-03 11:46:59 +00:00
webpush [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
workers [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00