Add the blocked_by attribute to the relationship API (GET /api/v1/accounts/relationships)

This commit is contained in:
Eugenij 2019-07-16 11:04:11 +00:00 committed by kaniini
commit c4ca142e14
3 changed files with 85 additions and 19 deletions

View file

@ -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),