This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-03-07 12:42:33 +01:00
|
|
|
object @status
|
|
|
|
|
2016-11-03 13:28:36 +01:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-03-07 12:42:33 +01:00
|
|
|
|
2017-02-05 15:25:55 +01: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 14:50:22 +01:00
|
|
|
|
2017-02-05 15:25:55 +01:00
|
|
|
child reblog: :reblog do
|
2016-11-03 13:28:36 +01:00
|
|
|
extends 'api/v1/statuses/_show'
|
2016-11-03 14:50:22 +01:00
|
|
|
|
2017-02-05 15:25:55 +01: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 00:09:21 +02:00
|
|
|
end
|