Skip to content
Snippets Groups Projects
Commit 514e427b authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix relationship caches being broken as result of a follow request (#12299)

parent 66684c48
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment