From b33937ae6593eadac72c46172e0a82f34297f77b Mon Sep 17 00:00:00 2001 From: db0 Date: Mon, 18 Sep 2023 16:05:20 +0200 Subject: [PATCH] fix: find_instance shows visibility --- fediseer/apis/v1/find.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediseer/apis/v1/find.py b/fediseer/apis/v1/find.py index c69dfe5..2f6c6fd 100644 --- a/fediseer/apis/v1/find.py +++ b/fediseer/apis/v1/find.py @@ -9,7 +9,7 @@ class FindInstance(Resource): @api.expect(get_parser) - @api.marshal_with(models.response_model_instances, code=200, description='Instance', skip_none=True) + @api.marshal_with(models.response_model_instances_visibility, code=200, description='Instance', skip_none=True) @api.response(401, 'Invalid API Key', models.response_model_error) def get(self): '''Retrieve instance information via API Key @@ -21,4 +21,4 @@ class FindInstance(Resource): if not user: raise e.NotFound("API key not found. Please Claim an instance first and use the API key that is PM'd to you") instance = database.find_instance_by_user(user) - return instance.get_details(),200 + return instance.get_details(show_visibilities=True),200