Need to disable caching again due to bug in Rabl
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
object @account
|
||||
cache false
|
||||
attribute :id
|
||||
node(:following) { |account| @following[account.id] || false }
|
||||
node(:followed_by) { |account| @followed_by[account.id] || false }
|
||||
|
@ -1,5 +1,5 @@
|
||||
object @account
|
||||
cache @account
|
||||
cache false
|
||||
|
||||
attributes :id, :username, :acct, :display_name, :note
|
||||
|
||||
|
@ -1,13 +1,10 @@
|
||||
object false
|
||||
object @context
|
||||
cache false
|
||||
|
||||
node :ancestors do
|
||||
@ancestors.map do |status|
|
||||
partial('api/v1/statuses/show', object: status)
|
||||
end
|
||||
node :ancestors do |context|
|
||||
partial 'api/v1/statuses/index', object: context.ancestors
|
||||
end
|
||||
|
||||
node :descendants do
|
||||
@descendants.map do |status|
|
||||
partial('api/v1/statuses/show', object: status)
|
||||
end
|
||||
node :descendants do |context|
|
||||
partial 'api/v1/statuses/index', object: context.descendants
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
object @status
|
||||
cache @status
|
||||
cache false
|
||||
|
||||
extends 'api/v1/statuses/_show'
|
||||
|
||||
|
Reference in New Issue
Block a user