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