2016-03-07 22:42:33 +11:00
|
|
|
object @status
|
|
|
|
|
2016-11-03 23:28:36 +11:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-03-07 22:42:33 +11:00
|
|
|
|
2016-11-04 00:50:22 +11:00
|
|
|
node(:favourited, if: proc { !current_account.nil? }) { |status| defined?(@favourites_map) ? !!@favourites_map[status.id] : current_account.favourited?(status) }
|
|
|
|
node(:reblogged, if: proc { !current_account.nil? }) { |status| defined?(@reblogs_map) ? !!@reblogs_map[status.id] : current_account.reblogged?(status) }
|
|
|
|
|
2016-03-07 22:42:33 +11:00
|
|
|
child :reblog => :reblog do
|
2016-11-03 23:28:36 +11:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-11-04 00:50:22 +11:00
|
|
|
|
|
|
|
node(:favourited, if: proc { !current_account.nil? }) { |status| defined?(@favourites_map) ? !!@favourites_map[status.id] : current_account.favourited?(status) }
|
|
|
|
node(:reblogged, if: proc { !current_account.nil? }) { |status| defined?(@reblogs_map) ? !!@reblogs_map[status.id] : current_account.reblogged?(status) }
|
2016-09-22 08:09:21 +10:00
|
|
|
end
|