logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: e14b76c7cb07c3ebc01a17991df9fe5b69d1b5bc
parent: 7e53efae31fee3ce511d187cf0bc68847cb19648
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sat, 19 Mar 2016 22:54:40 +0100

On following/followers pages, show most recent first

Diffstat:

Mapp/controllers/accounts_controller.rb4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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