From 1a69142d6741916667c00fa8a288763fceb87249 Mon Sep 17 00:00:00 2001 From: doubaniux Date: Wed, 24 Jun 2020 22:41:11 +0800 Subject: [PATCH] fix visibility check error --- common/mastodon/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/mastodon/api.py b/common/mastodon/api.py index bf675b83..ac2251bc 100644 --- a/common/mastodon/api.py +++ b/common/mastodon/api.py @@ -56,7 +56,7 @@ def check_visibility(user_owned_entity, token, visitor): """ if not visitor == user_owned_entity.owner: # mastodon request - relationship = get_relationships([visitor.mastodon_id], token)[0] + relationship = get_relationships([user_owned_entity.owner.mastodon_id], token)[0] if relationship['blocked_by']: return False if not relationship['following'] and user_owned_entity.is_private: