Stay on welcome profile screen if bio is invalid

main
Bob Mottram 2023-05-23 17:29:02 +01:00
parent ff46a005ea
commit 61192ef86a
1 changed files with 4 additions and 4 deletions

View File

@ -6497,11 +6497,11 @@ class PubServer(BaseHTTPRequestHandler):
else:
actor_json['name'] = nickname
if check_name_and_bio:
redirect_path = 'previewAvatar'
redirect_path = '/welcome_profile'
actor_changed = True
else:
if check_name_and_bio:
redirect_path = 'previewAvatar'
redirect_path = '/welcome_profile'
# change the theme from edit profile screen
if nickname == admin_nickname or \
@ -7176,10 +7176,10 @@ class PubServer(BaseHTTPRequestHandler):
actor_changed = True
else:
if check_name_and_bio:
redirect_path = 'previewAvatar'
redirect_path = '/welcome_profile'
else:
if check_name_and_bio:
redirect_path = 'previewAvatar'
redirect_path = '/welcome_profile'
set_featured_hashtags(actor_json, featured_tags, True)
admin_nickname = \