mirror of https://gitlab.com/bashrc2/epicyon
More debug
parent
c400c029ac
commit
da316ef4d3
|
@ -192,6 +192,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
content=content.replace(wordStr,replaceStr)
|
content=content.replace(wordStr,replaceStr)
|
||||||
|
|
||||||
content=content.replace('\n','</p><p>')
|
content=content.replace('\n','</p><p>')
|
||||||
|
print('Tags extracted from post: '+str(hashtags))
|
||||||
return '<p>'+content+'</p>'
|
return '<p>'+content+'</p>'
|
||||||
|
|
||||||
def getMentionsFromHtml(htmlText: str,matchStr="<span class=\"h-card\"><a href=\"") -> []:
|
def getMentionsFromHtml(htmlText: str,matchStr="<span class=\"h-card\"><a href=\"") -> []:
|
||||||
|
|
2
posts.py
2
posts.py
|
@ -445,6 +445,8 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
||||||
mentionedRecipients, \
|
mentionedRecipients, \
|
||||||
hashtagsDict)
|
hashtagsDict)
|
||||||
|
|
||||||
|
print('Tags extracted from post content: '+str(hashtagsDict))
|
||||||
|
|
||||||
statusNumber,published = getStatusNumber()
|
statusNumber,published = getStatusNumber()
|
||||||
conversationDate=published.split('T')[0]
|
conversationDate=published.split('T')[0]
|
||||||
conversationId=statusNumber
|
conversationId=statusNumber
|
||||||
|
|
Loading…
Reference in New Issue