From 2cbee8fedab224c225e0d8ed7f3755717480199c Mon Sep 17 00:00:00 2001 From: Z Date: Mon, 14 Sep 2020 18:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/timelines/home_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/timelines/home_controller.rb b/app/controllers/api/v1/timelines/home_controller.rb index 9fee9aa86..ae6dbcb8b 100644 --- a/app/controllers/api/v1/timelines/home_controller.rb +++ b/app/controllers/api/v1/timelines/home_controller.rb @@ -7,7 +7,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController def show @statuses = load_statuses - + render json: @statuses, each_serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id), @@ -15,7 +15,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController end private - + def load_statuses cached_home_statuses end