0
0
Fork 0

Adding common followers API, fixing fallback query again

This commit is contained in:
Eugen Rochko 2016-10-29 01:29:19 +02:00
parent c913bdfc98
commit e0a197650a
9 changed files with 23 additions and 13 deletions

View file

@ -14,15 +14,23 @@ class Api::V1::AccountsController < ApiController
end
def following
@following = @account.following
@accounts = @account.following
render action: :index
end
def followers
@followers = @account.followers
@accounts = @account.followers
render action: :index
end
def common_followers
@accounts = @account.common_followers_with(current_user.account)
render action: :index
end
def suggestions
@accounts = FollowSuggestion.get(current_user.account_id)
render action: :index
end
def statuses