fdssfd
This commit is contained in:
parent
9e7e4173dd
commit
6405dc208e
8 changed files with 10 additions and 16 deletions
|
@ -103,7 +103,7 @@ def settings_profile_post(v):
|
|||
if request.values.get("bio"):
|
||||
bio = request.values.get("bio")[:1500]
|
||||
|
||||
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', bio, re.MULTILINE):
|
||||
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 = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', bio)
|
||||
|
||||
|
@ -199,6 +199,7 @@ def settings_profile_post(v):
|
|||
theme = request.values.get("theme")
|
||||
if theme:
|
||||
v.theme = theme
|
||||
if theme == "win98": v.themecolor = "30409f"
|
||||
updated = True
|
||||
|
||||
quadrant = request.values.get("quadrant")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue