diff options
author | Reverite <github@reverite.sh> | 2019-06-27 21:10:01 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-06-27 21:10:01 -0700 |
commit | 9861df046853b71370cede86afbba1a371714756 (patch) | |
tree | 38416f38dfc2a2349b7a5df20646bb7d0f51361f /app/controllers/api/v1/timelines/direct_controller.rb | |
parent | 2d396aa3a0bf2674194b9f4c0e0a1052b8d23a06 (diff) | |
parent | ca17bae904783dfb1f4899a533d28a79da0c6fe9 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/api/v1/timelines/direct_controller.rb')
-rw-r--r-- | app/controllers/api/v1/timelines/direct_controller.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/controllers/api/v1/timelines/direct_controller.rb b/app/controllers/api/v1/timelines/direct_controller.rb index d8a76d153..6e98e9cac 100644 --- a/app/controllers/api/v1/timelines/direct_controller.rb +++ b/app/controllers/api/v1/timelines/direct_controller.rb @@ -27,16 +27,18 @@ class Api::V1::Timelines::DirectController < Api::BaseController end def direct_timeline_statuses - # this query requires built in pagination. - Status.as_direct_timeline( - current_account, + account_direct_feed.get( limit_param(DEFAULT_STATUSES_LIMIT), params[:max_id], params[:since_id], - true # returns array of cache_ids object + params[:min_id] ) end + def account_direct_feed + DirectFeed.new(current_account) + end + def insert_pagination_headers set_pagination_headers(next_path, prev_path) end |