Removing failed push notification API, make context loads use cache
This commit is contained in:
parent
19b9e1e2c3
commit
77e13c2bc9
9 changed files with 13 additions and 98 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue