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