diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-19 14:02:30 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-19 14:02:30 +0100 |
commit | 71ae4dd3d2dbafc1ef6e7716c379d01ea194aafe (patch) | |
tree | 024ff59a43fb775105dd9936a094fb206725231e /app/controllers | |
parent | c349200761bdbf5beac22648da07b0768addc4d6 (diff) |
Adding public following and followers pages, fix #3
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/accounts_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index c46200811..374591a5c 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -13,6 +13,14 @@ class AccountsController < ApplicationController end end + def followers + @followers = @account.followers.paginate(page: params[:page], per_page: 6) + end + + def following + @following = @account.following.paginate(page: params[:page], per_page: 6) + end + private def set_account |