Fix notifications in UI, added new API for fetching account relationships
This commit is contained in:
parent
4bec613897
commit
e46abc71ca
11 changed files with 91 additions and 17 deletions
5
app/views/api/accounts/relationships.rabl
Normal file
5
app/views/api/accounts/relationships.rabl
Normal file
|
@ -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 }
|
Loading…
Add table
Add a link
Reference in a new issue