about summary refs log tree commit diff
path: root/app/presenters/account_relationships_presenter.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-11-13 20:03:31 -0500
committerReverite <github@reverite.sh>2019-11-13 20:03:31 -0500
commit61a70e595d9ec7a6937d31b36d33063520cf1385 (patch)
tree6d7697e892f9324a5d6f00ed933606fea25fd871 /app/presenters/account_relationships_presenter.rb
parent48635bf45f6402c8f82d4cb66fa42e3e5e8f30c2 (diff)
parent707c4918b21d19dd53b64120dbc7263f45fc5ecd (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/presenters/account_relationships_presenter.rb')
-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))