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