Procházet zdrojové kódy

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

master^2
ThibG před 4 roky
committed by Eugen Rochko
rodič
revize
514e427bd2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      app/presenters/account_relationships_presenter.rb

+ 1
- 1
app/presenters/account_relationships_presenter.rb Zobrazit soubor

@@ -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))


Načítá se…
Zrušit
Uložit