fix: wrong visibility set for PRIVATE

pull/39/head
db0 2023-09-26 13:41:02 +02:00
parent 85b19dc50c
commit 9419d1e3e5
3 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class Censures(Resource):
if p_instance.visibility_censures == enums.ListVisibility.PRIVATE: if p_instance.visibility_censures == enums.ListVisibility.PRIVATE:
if get_instance is None: if get_instance is None:
continue continue
if not p_instance != get_instance: if p_instance != get_instance:
continue continue
instances.append(p_instance) instances.append(p_instance)
for c_instance in instances: for c_instance in instances:

View File

@ -117,7 +117,7 @@ class Endorsements(Resource):
if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE: if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE:
if get_instance is None: if get_instance is None:
continue continue
if not p_instance != get_instance: if p_instance != get_instance:
continue continue
instances.append(p_instance) instances.append(p_instance)
for e_instance in instances: for e_instance in instances:

View File

@ -121,7 +121,7 @@ class Hesitations(Resource):
if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE: if p_instance.visibility_endorsements == enums.ListVisibility.PRIVATE:
if get_instance is None: if get_instance is None:
continue continue
if not p_instance != get_instance: if p_instance != get_instance:
continue continue
instances.append(p_instance) instances.append(p_instance)
instance_details = [] instance_details = []