]> cat aescling's git repositories - mastodon.git/commit
Add `policy` param to `POST /api/v1/push/subscriptions` (#16040)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 15 Apr 2021 03:00:25 +0000 (05:00 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 03:00:25 +0000 (05:00 +0200)
commitce2148c57111981be455a9953d3bb589cf53967f
tree1fd87e2525e1c7989828a91ec7cde777e82504da
parentc968d22ee95fd9a37695b896cd86b7608689ead1
Add `policy` param to `POST /api/v1/push/subscriptions` (#16040)

With possible values `all`, `followed`, `follower`, and `none`,
control from whom notifications will generate a Web Push alert
app/controllers/api/v1/push/subscriptions_controller.rb
app/controllers/api/web/push_subscriptions_controller.rb
app/models/web/push_subscription.rb
spec/controllers/api/v1/push/subscriptions_controller_spec.rb
spec/controllers/api/web/push_subscriptions_controller_spec.rb
spec/models/web/push_subscription_spec.rb