Skip to content
Snippets Groups Projects
Unverified Commit 47f2ff61 authored by tateisu's avatar tateisu Committed by GitHub
Browse files

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

parent 9134ed63
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment