diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-19 20:43:53 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-19 20:48:20 -0600 |
commit | 82f98a770b088a3ffb2c165fd22ccb0adadd57a7 (patch) | |
tree | a87c075a92305ef696cedc6c255c963bf283c0ec /app/controllers/api | |
parent | 32d998b62333a768af3a274d265fd02483ce15de (diff) |
rework hide boosts / show only packmates options to work with timeline streaming
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/timelines/home_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/api/v1/timelines/list_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/timelines/home_controller.rb b/app/controllers/api/v1/timelines/home_controller.rb index 01d4e3360..bd3bac0fe 100644 --- a/app/controllers/api/v1/timelines/home_controller.rb +++ b/app/controllers/api/v1/timelines/home_controller.rb @@ -23,7 +23,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController end def cached_home_statuses - if current_account&.user&.hides_boosts? + if current_account&.user&.hide_boosts cache_collection home_statuses.without_reblogs, Status else cache_collection home_statuses, Status diff --git a/app/controllers/api/v1/timelines/list_controller.rb b/app/controllers/api/v1/timelines/list_controller.rb index 15934adb3..7eb656745 100644 --- a/app/controllers/api/v1/timelines/list_controller.rb +++ b/app/controllers/api/v1/timelines/list_controller.rb @@ -25,7 +25,7 @@ class Api::V1::Timelines::ListController < Api::BaseController end def cached_list_statuses - if current_account&.user&.hides_boosts? + if current_account&.user&.hide_boosts cache_collection list_statuses.without_reblogs, Status else cache_collection list_statuses, Status |