diff options
author | aschmitz <aschmitz@lardbucket.org> | 2017-11-11 14:37:23 -0600 |
---|---|---|
committer | aschmitz <aschmitz@lardbucket.org> | 2017-11-11 14:37:23 -0600 |
commit | 5128c4261e8c067321e70ffda560f14036f56bb0 (patch) | |
tree | 3dc0830509a5d8535f56e257fd034a7474570f02 /app/controllers | |
parent | b95c48748cd4e7a1181cdf3f17e23d6e526a9d95 (diff) |
Updates per code review
Thanks, @valerauko!
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index afdbf6e2d..85eb2d60e 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -17,7 +17,7 @@ class Api::V1::AccountsController < Api::BaseController FollowService.new.call(current_user.account, @account.acct, reblogs_arg) - options = @account.locked? ? {} : { following_map: reblogs_arg, requested_map: { @account.id => false } } + options = @account.locked? ? {} : { following_map: { @account.id => reblogs_arg }, requested_map: { @account.id => false } } render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships(options) end |