Skip to content
Snippets Groups Projects
Commit e14b76c7 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

On following/followers pages, show most recent first

parent 7e53efae
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment