mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
On following/followers pages, show most recent first
This commit is contained in:
parent
7e53efae31
commit
e14b76c7cb
1 changed files with 2 additions and 2 deletions
|
@ -14,11 +14,11 @@ class AccountsController < ApplicationController
|
|||
end
|
||||
|
||||
def followers
|
||||
@followers = @account.followers.paginate(page: params[:page], per_page: 6)
|
||||
@followers = @account.followers.order('follows.created_at desc').paginate(page: params[:page], per_page: 6)
|
||||
end
|
||||
|
||||
def following
|
||||
@following = @account.following.paginate(page: params[:page], per_page: 6)
|
||||
@following = @account.following.order('follows.created_at desc').paginate(page: params[:page], per_page: 6)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue