mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Update message in request
This commit is contained in:
parent
df870c1c7d
commit
09b3afc880
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user