diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-06-29 18:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 18:27:34 +0200 |
commit | 54ed35f57c55fff639c8192b99fc60ab69c54f06 (patch) | |
tree | 78cee27bfe871569f3ae2e7aa62d847fe9df7046 /app/controllers/api/v1/push | |
parent | 63f79874b59b3ba28c0f940b9d36ea7aacb44c93 (diff) | |
parent | 485b43ed7e312ab2c3bad446132c57d6a0ce7de4 (diff) |
Merge pull request #1801 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/api/v1/push')
-rw-r--r-- | app/controllers/api/v1/push/subscriptions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/push/subscriptions_controller.rb b/app/controllers/api/v1/push/subscriptions_controller.rb index 47f2e6440..7148d63a4 100644 --- a/app/controllers/api/v1/push/subscriptions_controller.rb +++ b/app/controllers/api/v1/push/subscriptions_controller.rb @@ -52,6 +52,6 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController def data_params return {} if params[:data].blank? - params.require(:data).permit(:policy, alerts: [:follow, :follow_request, :favourite, :reblog, :mention, :poll, :status]) + params.require(:data).permit(:policy, alerts: Notification::TYPES) end end |