Add the blocked_by attribute to the relationship API (GET /api/v1/accounts/relationships)
This commit is contained in:
parent
cf7ca1db0e
commit
c4ca142e14
3 changed files with 85 additions and 19 deletions
|
|
@ -51,6 +51,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
|
|||
following: User.following?(user, target),
|
||||
followed_by: User.following?(target, user),
|
||||
blocking: User.blocks?(user, target),
|
||||
blocked_by: User.blocks?(target, user),
|
||||
muting: User.mutes?(user, target),
|
||||
muting_notifications: User.muted_notifications?(user, target),
|
||||
subscribing: User.subscribed_to?(user, target),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue