diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-10 18:10:06 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:17 -0500 |
commit | 07339cf4906c93c2a79f395a8fb3104c852b1fa9 (patch) | |
tree | 09cdefc1476364970c84c1d96b2cf99510cf27d9 /app/controllers/api/v1 | |
parent | 034315fffe528c5181640b6f372a5822bf405f1a (diff) |
[Timelines] Replace Federated timetime with public local reblogs when in local mode
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r-- | app/controllers/api/v1/timelines/public_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api/v1/timelines/public_controller.rb b/app/controllers/api/v1/timelines/public_controller.rb index b449bcadf..968aa8cf5 100644 --- a/app/controllers/api/v1/timelines/public_controller.rb +++ b/app/controllers/api/v1/timelines/public_controller.rb @@ -41,7 +41,8 @@ class Api::V1::Timelines::PublicController < Api::BaseController end def public_timeline_statuses - Status.as_public_timeline(current_account, truthy_param?(:remote) ? :remote : truthy_param?(:local)) + local = truthy_param?(:local) ? true : :local_reblogs + Status.as_public_timeline(current_account, truthy_param?(:remote) ? :remote : local) end def insert_pagination_headers |