]> cat aescling's git repositories - mastodon.git/commitdiff
Fix typo in admin/status_controller.rb (#4679)
authorHIKARU KOBORI <hk.uec.univ@gmail.com>
Thu, 24 Aug 2017 02:03:52 +0000 (11:03 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Aug 2017 02:03:52 +0000 (04:03 +0200)
app/controllers/admin/statuses_controller.rb

index 50712f0dd0900a7476c6c0e35f8aac2178f45445..b05000b16b0f23b1916e9cdecb62328333c532b8 100644 (file)
@@ -9,7 +9,7 @@ module Admin
     before_action :set_account
     before_action :set_status, only: [:update, :destroy]
 
-    PAR_PAGE = 20
+    PER_PAGE = 20
 
     def index
       @statuses = @account.statuses
@@ -17,7 +17,7 @@ module Admin
         account_media_status_ids = @account.media_attachments.attached.reorder(nil).select(:status_id).distinct
         @statuses.merge!(Status.where(id: account_media_status_ids))
       end
-      @statuses = @statuses.preload(:media_attachments, :mentions).page(params[:page]).per(PAR_PAGE)
+      @statuses = @statuses.preload(:media_attachments, :mentions).page(params[:page]).per(PER_PAGE)
 
       @form = Form::StatusBatch.new
     end