about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorDaigo 3 Dango <zunda@users.noreply.github.com>2017-09-23 23:18:32 -1000
committerEugen Rochko <eugen@zeonfederated.com>2017-09-24 11:18:32 +0200
commitab625c57cebb1f45645b9fb0638548e1079378b1 (patch)
treeee4271eed8d3b67cb5391267b86aaa693c20079e /app/presenters
parente756c4f5ec4719b0fe41df77abea56dda317b491 (diff)
Compact status_ids in StatusRelationshipsPresenter (#5073)
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/status_relationships_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/status_relationships_presenter.rb b/app/presenters/status_relationships_presenter.rb
index 10b449504..bc3887a44 100644
--- a/app/presenters/status_relationships_presenter.rb
+++ b/app/presenters/status_relationships_presenter.rb
@@ -11,7 +11,7 @@ class StatusRelationshipsPresenter
       @pins_map       = {}
     else
       statuses            = statuses.compact
-      status_ids          = statuses.flat_map { |s| [s.id, s.reblog_of_id] }.uniq
+      status_ids          = statuses.flat_map { |s| [s.id, s.reblog_of_id] }.uniq.compact
       conversation_ids    = statuses.map(&:conversation_id).compact.uniq
       pinnable_status_ids = statuses.map(&:proper).select { |s| s.account_id == current_account_id && %w(public unlisted).include?(s.visibility) }.map(&:id)