diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-05 17:51:44 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-05 17:51:44 +0100 |
commit | 77e13c2bc93fdb633f27f94989ab5770f9ecc3b3 (patch) | |
tree | c9b139593bf3bd478bfaa2e44657492cfab33f94 /app/controllers/stream_entries_controller.rb | |
parent | 19b9e1e2c3d621b5f9f2367980dae62648fe22fa (diff) |
Removing failed push notification API, make context loads use cache
Diffstat (limited to 'app/controllers/stream_entries_controller.rb')
-rw-r--r-- | app/controllers/stream_entries_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/stream_entries_controller.rb b/app/controllers/stream_entries_controller.rb index 5701b2efa..da284d80e 100644 --- a/app/controllers/stream_entries_controller.rb +++ b/app/controllers/stream_entries_controller.rb @@ -14,8 +14,8 @@ class StreamEntriesController < ApplicationController return gone if @stream_entry.activity.nil? if @stream_entry.activity_type == 'Status' - @ancestors = @stream_entry.activity.ancestors(current_account) - @descendants = @stream_entry.activity.descendants(current_account) + @ancestors = @stream_entry.activity.reply? ? cache_collection(@stream_entry.activity.ancestors(current_account), Status) : [] + @descendants = cache_collection(@stream_entry.activity.descendants(current_account), Status) end end |