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

This commit is contained in:
tateisu 2022-06-23 08:44:27 +09:00 committed by GitHub
parent 9134ed63f3
commit 47f2ff617d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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