]> cat aescling's git repositories - mastodon.git/commitdiff
Enforce order on authorized applications page (#7587)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 22 May 2018 12:44:53 +0000 (14:44 +0200)
committerGitHub <noreply@github.com>
Tue, 22 May 2018 12:44:53 +0000 (14:44 +0200)
Fix #7586

app/controllers/settings/applications_controller.rb

index 8fc9a0fa999d9686698387e0c79ac0fc7a8d8e1a..2a4962311573c55e379c0d2e0aa8b3b28bce8303 100644 (file)
@@ -8,7 +8,7 @@ class Settings::ApplicationsController < ApplicationController
   before_action :prepare_scopes, only: [:create, :update]
 
   def index
-    @applications = current_user.applications.page(params[:page])
+    @applications = current_user.applications.order(id: :desc).page(params[:page])
   end
 
   def new