chuckya/app/views/api/v1/accounts/relationship.rabl
2016-11-03 13:59:31 +01:00

6 lines
243 B
Ruby

object @account
cache false
attribute :id
node(:following) { |account| @following[account.id] || false }
node(:followed_by) { |account| @followed_by[account.id] || false }
node(:blocking) { |account| @blocking[account.id] || false }