mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix relationship caches being broken as result of a follow request (#12299)
This commit is contained in:
parent
66684c489c
commit
514e427bd2
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user