use Notification::TYPES for api push subscription alerts (#18709)

lolsob-rspec
tateisu 2022-06-23 08:44:27 +09:00 committed by GitHub
parent 6aed559bb5
commit 6d1b8097a0
1 changed files with 1 additions and 1 deletions

View File

@ -52,6 +52,6 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController
def data_params def data_params
return {} if params[:data].blank? 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
end end