From 9419d1e3e582c59f9b0f1e9f41c6003e4a7f0f07 Mon Sep 17 00:00:00 2001 From: db0 Date: Tue, 26 Sep 2023 13:41:02 +0200 Subject: [PATCH] fix: wrong visibility set for PRIVATE --- fediseer/apis/v1/censures.py | 2 +- fediseer/apis/v1/endorsements.py | 2 +- fediseer/apis/v1/hesitations.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fediseer/apis/v1/censures.py b/fediseer/apis/v1/censures.py index 0361eab..3a59c5b 100644 --- a/fediseer/apis/v1/censures.py +++ b/fediseer/apis/v1/censures.py @@ -136,7 +136,7 @@ class Censures(Resource): if p_instance.visibility_censures == enums.ListVisibility.PRIVATE: if get_instance is None: continue - if not p_instance != get_instance: + if p_instance != get_instance: continue instances.append(p_instance) for c_instance in instances: diff --git a/fediseer/apis/v1/endorsements.py b/fediseer/apis/v1/endorsements.py index 5a203bd..c513322 100644 --- a/fediseer/apis/v1/endorsements.py +++ b/fediseer/apis/v1/endorsements.py @@ -117,7 +117,7 @@ class Endorsements(Resource): if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE: if get_instance is None: continue - if not p_instance != get_instance: + if p_instance != get_instance: continue instances.append(p_instance) for e_instance in instances: diff --git a/fediseer/apis/v1/hesitations.py b/fediseer/apis/v1/hesitations.py index 758cfa3..4d0d131 100644 --- a/fediseer/apis/v1/hesitations.py +++ b/fediseer/apis/v1/hesitations.py @@ -121,7 +121,7 @@ class Hesitations(Resource): if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE: if get_instance is None: continue - if not p_instance != get_instance: + if p_instance != get_instance: continue instances.append(p_instance) instance_details = []