...
 
Commits (2)
......@@ -6,8 +6,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController
respond_to :json
def show
# @statuses = load_statuses
@statuses = []
@statuses = load_statuses
render json: @statuses, each_serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id)
end
......
......@@ -342,7 +342,7 @@ class Status < ApplicationRecord
end
def as_public_timeline(account = nil, local_only = false)
query = timeline_scope(local_only).without_replies.where('statuses.updated_at > ?', 5.days.ago)
query = timeline_scope(local_only).without_replies
apply_timeline_filters(query, account, local_only)
end
......