Fix bug from capitals in 'https://'
This commit is contained in:
1 parent
7943e291fb
commit
61225ebd20
3 files changed
+4264
-1
No files matched your search
+2143
File diff suppressed because it is too large.
Load diff
+2120
File diff suppressed because it is too large.
Load diff
@@ -52,7 +52,7 @@ async def new_message(event):
|
|||||||
if website:
|
if website:
|
||||||
prefixes = ['http://', 'https://', 'gemini://', 'gopher://']
|
prefixes = ['http://', 'https://', 'gemini://', 'gopher://']
|
||||||
for prefix in prefixes:
|
for prefix in prefixes:
|
||||||
if website.startswith(prefix):
|
if website.lower().startswith(prefix):
|
||||||
break
|
break
|
||||||
else: # for loop
|
else: # for loop
|
||||||
website = 'http://' + website
|
website = 'http://' + website
|
||||||
|
|||||||
Reference in new issue
Block a user