diff options
author | 2025-02-03 02:25:53 -0800 | |
---|---|---|
committer | 2025-02-03 10:25:53 +0000 | |
commit | 27844b7da2567491661f9ddd2d4662f9f1b3ce40 (patch) | |
tree | 1832fe4ec4d3a0fbf6d01bcb5f39acf6885cc1f5 /internal/api/client/push/pushsubscriptionpost.go | |
parent | [chore]: Bump github.com/tdewolff/minify/v2 from 2.21.2 to 2.21.3 (#3727) (diff) | |
download | gotosocial-27844b7da2567491661f9ddd2d4662f9f1b3ce40.tar.xz |
[feature] Implement Web Push notification policy (#3721)
* Web Push: add policy column to subscriptions
* Web Push: add policy to API
* Web Push: test notification policy
* go-fmt unrelated file (how did this get thru?)
Diffstat (limited to 'internal/api/client/push/pushsubscriptionpost.go')
-rw-r--r-- | internal/api/client/push/pushsubscriptionpost.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/api/client/push/pushsubscriptionpost.go b/internal/api/client/push/pushsubscriptionpost.go index a7e299894..cc1be185f 100644 --- a/internal/api/client/push/pushsubscriptionpost.go +++ b/internal/api/client/push/pushsubscriptionpost.go @@ -147,6 +147,17 @@ import ( // type: boolean // default: false // description: Receive a push notification when a boost is pending? +// - +// name: data[policy] +// in: formData +// type: string +// enum: +// - all +// - followed +// - follower +// - none +// default: all +// description: Which accounts to receive push notifications from. // // security: // - OAuth2 Bearer: |