|
|
@ -14,11 +14,11 @@ class AccountsController < ApplicationController |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def followers |
|
|
|
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 |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def following |
|
|
|
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 |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|