From: Eugen Rochko Date: Tue, 22 May 2018 12:44:53 +0000 (+0200) Subject: Enforce order on authorized applications page (#7587) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=36e47a31e33a86c401c2aaf1f9788ca0c91bdec0;p=mastodon.git Enforce order on authorized applications page (#7587) Fix #7586 --- diff --git a/app/controllers/settings/applications_controller.rb b/app/controllers/settings/applications_controller.rb index 8fc9a0fa9..2a4962311 100644 --- a/app/controllers/settings/applications_controller.rb +++ b/app/controllers/settings/applications_controller.rb @@ -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