From e46abc71cad590c2113247d41feca80d27a557b0 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 21 Sep 2016 22:07:18 +0200 Subject: Fix notifications in UI, added new API for fetching account relationships --- app/views/api/accounts/relationships.rabl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/api/accounts/relationships.rabl (limited to 'app/views/api/accounts/relationships.rabl') diff --git a/app/views/api/accounts/relationships.rabl b/app/views/api/accounts/relationships.rabl new file mode 100644 index 000000000..dc1c1bc65 --- /dev/null +++ b/app/views/api/accounts/relationships.rabl @@ -0,0 +1,5 @@ +collection @accounts +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 } -- cgit