aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugenij <eugenijm@protonmail.com>2019-07-16 11:04:11 +0000
committerkaniini <ariadne@dereferenced.org>2019-07-16 11:04:11 +0000
commitc4ca142e14444a03250f246e189c78e70aafe9d7 (patch)
treeeb7ebeb22a75f2afc515f8d7687eb68fa79dd039 /lib
parentcf7ca1db0e10b61cc64c7cadc7cf70d57cbfe684 (diff)
downloadpleroma-c4ca142e14444a03250f246e189c78e70aafe9d7.tar.gz
Add the `blocked_by` attribute to the relationship API (`GET /api/v1/accounts/relationships`)
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 65bab4062..de1eef9d2 100644
--- a/lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -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),