diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-06-21 20:14:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 20:14:47 +0200 |
commit | 63b807cffcba0579efdf2f4ed4a2deb93af4850b (patch) | |
tree | 84a6aa1491b65915e3d7d39c14799ace2f3f5e77 /app/controllers | |
parent | d174d12c831989bf1d5d3ca54d4f26d28c2c8925 (diff) |
Fix serialization of followers/following counts when user hides their network (#16418)
* Add tests * Fix serialization of followers/following counts when user hides their network Fixes #16382 Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/follower_accounts_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/following_accounts_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/follower_accounts_controller.rb b/app/controllers/follower_accounts_controller.rb index ff4df2adf..b3589a39f 100644 --- a/app/controllers/follower_accounts_controller.rb +++ b/app/controllers/follower_accounts_controller.rb @@ -85,7 +85,7 @@ class FollowerAccountsController < ApplicationController if page_requested? || !@account.user_hides_network? # Return all fields else - %i(id type totalItems) + %i(id type total_items) end end end diff --git a/app/controllers/following_accounts_controller.rb b/app/controllers/following_accounts_controller.rb index 6bb95c454..8a72dc475 100644 --- a/app/controllers/following_accounts_controller.rb +++ b/app/controllers/following_accounts_controller.rb @@ -85,7 +85,7 @@ class FollowingAccountsController < ApplicationController if page_requested? || !@account.user_hides_network? # Return all fields else - %i(id type totalItems) + %i(id type total_items) end end end |