Browse Source

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

closed-social-glitch-2
tateisu 2 years ago
committed by GitHub
parent
commit
47f2ff617d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/v1/push/subscriptions_controller.rb

+ 1
- 1
app/controllers/api/v1/push/subscriptions_controller.rb 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

Loading…
Cancel
Save