fsd
This commit is contained in:
parent
bfb1830b98
commit
30f42771f8
5 changed files with 26 additions and 40 deletions
|
@ -101,7 +101,7 @@ def settings_profile_post(v):
|
|||
|
||||
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', bio, re.MULTILINE):
|
||||
if "wikipedia" not in i.group(1): bio = bio.replace(i.group(1), f'})')
|
||||
bio = bio.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
|
||||
bio = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', bio)
|
||||
|
||||
# check for uploaded image
|
||||
if request.files.get('file') and request.headers.get("cf-ipcountry") != "T1":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue