about summary refs log tree commit diff
path: root/app/models/feed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/feed.rb')
-rw-r--r--app/models/feed.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/feed.rb b/app/models/feed.rb
index bc3e960d4..5807ff176 100644
--- a/app/models/feed.rb
+++ b/app/models/feed.rb
@@ -7,11 +7,11 @@ class Feed
   def get(limit, max_id = nil)
     max_id     = '+inf' if max_id.nil?
     unhydrated = redis.zrevrangebyscore(key, "(#{max_id}", '-inf', limit: [0, limit])
-    status_map = Hash.new
+    status_map = {}
 
     # If we're after most recent items and none are there, we need to precompute the feed
     if unhydrated.empty? && max_id == '+inf'
-      PrecomputeFeedService.new.(@type, @account, limit)
+      PrecomputeFeedService.new.call(@type, @account, limit)
     else
       Status.where(id: unhydrated).with_includes.with_counters.each { |status| status_map[status.id.to_s] = status }
       unhydrated.map { |id| status_map[id] }.compact