mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use params.slice
in api/v2_alpha/notifications controller
This commit is contained in:
parent
50bcdf5371
commit
f9f558da7f
1 changed files with 7 additions and 2 deletions
|
@ -109,10 +109,15 @@ class Api::V2Alpha::NotificationsController < Api::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def browserable_params
|
def browserable_params
|
||||||
params.permit(:include_filtered, types: [], exclude_types: [])
|
params
|
||||||
|
.slice(:include_filtered, :types, :exclude_types)
|
||||||
|
.permit(:include_filtered, types: [], exclude_types: [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def pagination_params(core_params)
|
def pagination_params(core_params)
|
||||||
params.slice(:limit, :types, :exclude_types, :include_filtered).permit(:limit, :include_filtered, types: [], exclude_types: []).merge(core_params)
|
params
|
||||||
|
.slice(:limit, :types, :exclude_types, :include_filtered)
|
||||||
|
.permit(:limit, :include_filtered, types: [], exclude_types: [])
|
||||||
|
.merge(core_params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue