about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-19 18:20:19 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-19 18:20:19 +0200
commit04bbc576906ff70feed7d42fef0e6db17fdd9ed3 (patch)
tree789e41ff1abc26044dd230ca05b0aa517e98c453 /app/controllers
parent8698cd3281ac1d699c723a151b14f1e2f2e8b07e (diff)
Fix #100 - Add "back" button to certain views
Also fix reloading of timelines after merge-type events
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index c4ad450cf..e29892cbe 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -37,7 +37,7 @@ class ApiController < ApplicationController
   end
 
   def set_maps(statuses)
-    status_ids      = statuses.flat_map { |s| [s.id, s.reblog_of_id] }.compact
+    status_ids      = statuses.flat_map { |s| [s.id, s.reblog_of_id] }.compact.uniq
     @reblogs_map    = Status.reblogs_map(status_ids, current_user.account)
     @favourites_map = Status.favourites_map(status_ids, current_user.account)
   end