aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-03 08:23:31 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-03 08:23:31 +0100
commit33beb51da423f5f80311453ad9025aa66984eb12 (patch)
tree1760e2b3210f919f414702c2517eed49cd12a416 /lib
parent9b63647aff337d8510dd7fc3ad838a365baa480f (diff)
downloadpleroma-33beb51da423f5f80311453ad9025aa66984eb12.tar.gz
MastoAPI: Add blocking to AccountView.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex
index ff02587d6..cf97ab746 100644
--- a/lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -55,7 +55,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
id: target.id,
following: User.following?(user, target),
followed_by: User.following?(target, user),
- blocking: false,
+ blocking: User.blocks?(user, target),
muting: false,
requested: false,
domain_blocking: false