diff --git a/app/Transformer/Api/RelationshipTransformer.php b/app/Transformer/Api/RelationshipTransformer.php index 6c1a6bfb..544a9bfd 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,