Updated status.rb scopes and api public timline controller to be always local only
• Updated: - status.rb scopes and api public timline controller to be always local only
This commit is contained in:
@@ -37,7 +37,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)
|
||||
end
|
||||
|
||||
def insert_pagination_headers
|
||||
@@ -45,7 +45,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(:limit, :only_media).permit(:limit, :only_media).merge(core_params)
|
||||
end
|
||||
|
||||
def next_path
|
||||
|
||||
Reference in New Issue
Block a user