From 19a259915eedcdff8c1e82f3b99a6249010b4b30 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 Mar 2016 10:08:19 +0100 Subject: Security update --- app/controllers/accounts_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 50b5c08e6..72d32baf0 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -5,10 +5,8 @@ class AccountsController < ApplicationController before_action :set_webfinger_header def show - @statuses = @account.statuses.order('id desc').with_includes.with_counters - respond_to do |format| - format.html { @statuses = @statuses.paginate(page: params[:page], per_page: 10)} + format.html { @statuses = @account.statuses.order('id desc').with_includes.with_counters.paginate(page: params[:page], per_page: 10)} format.atom end end -- cgit