From 828ed9f9e85e208cefd0e94c744e88c2ed0853b3 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Wed, 21 Aug 2019 13:29:30 +0100
Subject: [PATCH] s
---
content.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/content.py b/content.py
index caabb179..e2e37d5e 100644
--- a/content.py
+++ b/content.py
@@ -19,7 +19,7 @@ def addWebLinks(content: str) -> str:
words=content.split(' ')
replaceDict={}
for w in words:
- if w.startswith('http://') or w.startswith('http://'):
+ if w.startswith('https://') or w.startswith('http://'):
if w.endswith('.') or w.endswith(';'):
w=w[:-1]
markup=''
@@ -243,8 +243,8 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
for wordStr,replaceStr in replaceEmoji.items():
content=content.replace(wordStr,replaceStr)
- content=content.replace('\n','
')
content=addWebLinks(content)
+ content=content.replace('\n','
')
return '
'+content+'
'
def getMentionsFromHtml(htmlText: str,matchStr=" []: