1
0
Fork 0
forked from fedi/mastodon
mastodon/app/views/api/v1/accounts/relationship.rabl
2016-09-27 16:59:08 +02:00

6 lines
231 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 }