Files
Mastodon/app/views/api/v1/accounts/relationship.rabl
2016-11-03 14:12:45 +01:00

7 lines
232 B
Ruby

object @account
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 }