diff --git a/app/settings/json_routes.py b/app/settings/json_routes.py index 63eaeb04..01a553b0 100644 --- a/app/settings/json_routes.py +++ b/app/settings/json_routes.py @@ -67,10 +67,7 @@ def update_user_is_public(user_id): user.is_public = is_public db.session.commit() response_data = { - 'message': ( - f'User "{user.username}" is now' - f' {"public" if is_public else "private"}' - ), + 'message': 'Profile privacy settings updated', 'category': 'corpus' } return response_data, 200