about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:08:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:08:19 +0100
commit19a259915eedcdff8c1e82f3b99a6249010b4b30 (patch)
treede0f543aa5dcfdb7aa40831e337b27c1a4e9f5e4 /app/controllers
parent2ba6537f524dfcdd761edbe72f925c26588b4f0e (diff)
Security update
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/accounts_controller.rb4
1 files changed, 1 insertions, 3 deletions
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