fix uploading file in bio alone

pull/216/head
Aevann 2023-10-18 21:23:53 +03:00
parent 3e26b1f59a
commit c71d6f264c
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ def settings_personal_post(v):
elif not updated and FEATURES['USERS_PROFILE_BODYTEXT'] and \
(request.values.get("bio") or request.files.get('file')):
bio = request.values.get("bio")[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT]
bio = request.values.get("bio", "")[:BIO_FRIENDS_ENEMIES_LENGTH_LIMIT]
bio = process_files(request.files, v, bio)
bio = bio.strip()
bio_html = sanitize(bio, blackjack="bio")