2016-03-07 20:42:33 +09:00
|
|
|
object @status
|
|
|
|
|
2016-11-03 21:28:36 +09:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-03-07 20:42:33 +09:00
|
|
|
|
2016-11-03 22:50:22 +09: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 20:42:33 +09:00
|
|
|
child :reblog => :reblog do
|
2016-11-03 21:28:36 +09:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-11-03 22:50:22 +09: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 07:09:21 +09:00
|
|
|
end
|