From 6029cc79ab1ab3c96ca8ca0bd7da63237d9c6cbe Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 7 Apr 2019 20:35:56 -0600 Subject: [PATCH] Update RelationshipTransformer --- app/Transformer/Api/RelationshipTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Transformer/Api/RelationshipTransformer.php b/app/Transformer/Api/RelationshipTransformer.php index 6c1a6bfbd..544a9bfd4 100644 --- a/app/Transformer/Api/RelationshipTransformer.php +++ b/app/Transformer/Api/RelationshipTransformer.php @@ -15,8 +15,8 @@ class RelationshipTransformer extends Fractal\TransformerAbstract 'id' => (string) $profile->id, 'following' => $user->follows($profile), 'followed_by' => $user->followedBy($profile), - 'blocking' => null, - 'muting' => null, + 'blocking' => $user->blockedIds()->contains($profile->id), + 'muting' => $user->mutedIds()->contains($profile->id), 'muting_notifications' => null, 'requested' => null, 'domain_blocking' => null,