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