diff options
author | tateisu <tateisu@gmail.com> | 2022-06-23 08:44:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 01:44:27 +0200 |
commit | 47f2ff617ded1c3cc523e6bb803e26a0e6dd4103 (patch) | |
tree | 489f47c98a4f75bd3157cee6a74a3b6800540356 /app/controllers/api/v1/push | |
parent | 9134ed63f3250fb69ddf3f5a39e1222e4a904e49 (diff) |
use Notification::TYPES for api push subscription alerts (#18709)
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 |