From: Eugen Rochko Date: Sat, 19 Mar 2016 21:54:40 +0000 (+0100) Subject: On following/followers pages, show most recent first X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=e14b76c7cb07c3ebc01a17991df9fe5b69d1b5bc;p=mastodon.git On following/followers pages, show most recent first --- diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 374591a5c..50b5c08e6 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -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