From: Eugen Rochko Date: Sat, 28 Jul 2018 21:15:17 +0000 (+0200) Subject: Order invites by recent first (#8091) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=79a1f667c5388ea025b2c160c029191d14e4cfc5;p=mastodon.git Order invites by recent first (#8091) Fix #8085 --- diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 5c30313f4..3aaa2776f 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -38,7 +38,7 @@ class InvitesController < ApplicationController private def invites - Invite.where(user: current_user) + Invite.where(user: current_user).order(id: :desc) end def resource_params