1
0
Fork 0
forked from fedi/mastodon

Order sessions by most-recent to least-recently updated (#25005)

This commit is contained in:
Frankie Roberto 2023-05-22 10:40:00 +01:00 committed by GitHub
parent c1e70a2072
commit 36a77748b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
end end
def set_sessions def set_sessions
@sessions = current_user.session_activations @sessions = current_user.session_activations.order(updated_at: :desc)
end end
def set_strikes def set_strikes