diff options
author | Reverite <github@reverite.sh> | 2019-05-23 22:22:54 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-05-23 22:22:54 -0700 |
commit | 93492d29e36e2bed11a1a742e2e0750716df5062 (patch) | |
tree | e475c56449c2c7e478e629cadbff41c9bb2fee3d /app/controllers/api | |
parent | d873e4f3d5878a2b2800758cbe3b9c870c228d51 (diff) | |
parent | 72bf354e979a9b8c14c41bf34c47060d5ff4d232 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/notifications_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/api/v1/notifications_controller.rb b/app/controllers/api/v1/notifications_controller.rb index 3b492c516..c91753ae7 100644 --- a/app/controllers/api/v1/notifications_controller.rb +++ b/app/controllers/api/v1/notifications_controller.rb @@ -53,7 +53,7 @@ class Api::V1::NotificationsController < Api::BaseController end def browserable_account_notifications - current_account.notifications.browserable(exclude_types) + current_account.notifications.browserable(exclude_types, from_account) end def target_statuses_from_notifications @@ -90,6 +90,10 @@ class Api::V1::NotificationsController < Api::BaseController val end + def from_account + params[:account_id] + end + def pagination_params(core_params) params.slice(:limit, :exclude_types).permit(:limit, exclude_types: []).merge(core_params) end |