Skip to content

Commit

Permalink
use Notification::TYPES for api push subscription alerts (mastodon#18709
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tateisu authored and kadoshita committed Nov 19, 2022
1 parent 4a31b9f commit 1ca15ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/push/subscriptions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ def subscription_params
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 comments on commit 1ca15ae

Please sign in to comment.