|
@ -7,7 +7,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController |
|
|
|
|
|
|
|
|
def show |
|
|
def show |
|
|
@statuses = load_statuses |
|
|
@statuses = load_statuses |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render json: @statuses, |
|
|
render json: @statuses, |
|
|
each_serializer: REST::StatusSerializer, |
|
|
each_serializer: REST::StatusSerializer, |
|
|
relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id), |
|
|
relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id), |
|
@ -15,7 +15,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def load_statuses |
|
|
def load_statuses |
|
|
cached_home_statuses |
|
|
cached_home_statuses |
|
|
end |
|
|
end |
|
|