瀏覽代碼

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

master^2
ThibG 4 年之前
committed by Eugen Rochko
父節點
當前提交
514e427bd2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/presenters/account_relationships_presenter.rb

+ 1
- 1
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))


Loading…
取消
儲存