diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-16 10:58:58 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-16 10:58:58 +0100 |
commit | 5c99e304e5d3e9f975d19d7097bfde3ace986ad8 (patch) | |
tree | 9c59226db9ad6127409898668484d6f99d5e0ea3 /app/models/feed.rb | |
parent | 75b3339a99bd32c59004effd05dcd0edfc0b7c2a (diff) |
Deleting statuses, deletion propagation
Diffstat (limited to 'app/models/feed.rb')
-rw-r--r-- | app/models/feed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/feed.rb b/app/models/feed.rb index 0c0b8ae2c..9f2b34c82 100644 --- a/app/models/feed.rb +++ b/app/models/feed.rb @@ -12,7 +12,7 @@ class Feed return PrecomputeFeedService.new.(@type, @account).take(limit) if unhydrated.empty? && offset == 0 Status.where(id: unhydrated).with_includes.with_counters.each { |status| status_map[status.id.to_s] = status } - return unhydrated.map { |id| status_map[id] } + return unhydrated.map { |id| status_map[id] }.compact end private |