about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-11-07 08:08:00 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-11-07 09:08:00 +0200
commit514e427bd2877e53323791797f508d4ab5007396 (patch)
tree3ddd94ac49562d7bf7c70c5147d84288749ee34e /app
parent66684c489c3c0bde752d107b02fc3bd6cbcacf04 (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.rb2
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))