diff options
author | ThibG <thib@sitedethib.com> | 2019-11-07 08:08:00 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-11-07 09:08:00 +0200 |
commit | 514e427bd2877e53323791797f508d4ab5007396 (patch) | |
tree | 3ddd94ac49562d7bf7c70c5147d84288749ee34e /app | |
parent | 66684c489c3c0bde752d107b02fc3bd6cbcacf04 (diff) |
Fix relationship caches being broken as result of a follow request (#12299)
Diffstat (limited to 'app')
-rw-r--r-- | app/presenters/account_relationships_presenter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/account_relationships_presenter.rb b/app/presenters/account_relationships_presenter.rb index b05673a3d..08614b67c 100644 --- a/app/presenters/account_relationships_presenter.rb +++ b/app/presenters/account_relationships_presenter.rb @@ -6,7 +6,7 @@ class AccountRelationshipsPresenter :endorsed def initialize(account_ids, current_account_id, **options) - @account_ids = account_ids.map { |a| a.is_a?(Account) ? a.id : a } + @account_ids = account_ids.map { |a| a.is_a?(Account) ? a.id : a.to_i } @current_account_id = current_account_id @following = cached[:following].merge(Account.following_map(@uncached_account_ids, @current_account_id)) |