diff options
author | Starfall <admin@plural.cafe> | 2020-05-15 18:30:58 -0500 |
---|---|---|
committer | Starfall <admin@plural.cafe> | 2020-05-15 18:30:58 -0500 |
commit | 3f6370500cd8bf04fab9c9d8f3099271126a3097 (patch) | |
tree | 7215e9562c06435f9e6464fee2aa0185dd108a34 /app/controllers/api/v1/timelines | |
parent | ca3af6c5b00be851e2ced9112429cfc1baa79529 (diff) | |
parent | b7e178d2e4102bdaa1ea41dfd8ed50093cf3f60a (diff) |
Update to Mastodon 3.1.4 / Merge branch 'glitch'
Diffstat (limited to 'app/controllers/api/v1/timelines')
-rw-r--r-- | app/controllers/api/v1/timelines/public_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/timelines/public_controller.rb b/app/controllers/api/v1/timelines/public_controller.rb index 581befef1..c6e7854d9 100644 --- a/app/controllers/api/v1/timelines/public_controller.rb +++ b/app/controllers/api/v1/timelines/public_controller.rb @@ -39,7 +39,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController end def public_timeline_statuses - Status.as_public_timeline(current_account, truthy_param?(:local)) + Status.as_public_timeline(current_account, truthy_param?(:remote) ? :remote : truthy_param?(:local)) end def insert_pagination_headers @@ -47,7 +47,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController end def pagination_params(core_params) - params.slice(:local, :limit, :only_media).permit(:local, :limit, :only_media).merge(core_params) + params.slice(:local, :remote, :limit, :only_media).permit(:local, :remote, :limit, :only_media).merge(core_params) end def next_path |