forked from indymedia/epicyon
Simplify
parent
cc5884a274
commit
38b82391b0
|
@ -626,18 +626,15 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
"\" class=\"addedHashtag\" " + \
|
"\" class=\"addedHashtag\" " + \
|
||||||
"rel=\"tag\">#<span>" + \
|
"rel=\"tag\">#<span>" + \
|
||||||
htId + "</span></a>"
|
htId + "</span></a>"
|
||||||
if tagName in blog['object']['content']:
|
content = blog['object']['content']
|
||||||
blog['object']['content'].replace(tagName, hashtagHtml)
|
if hashtagHtml not in content:
|
||||||
else:
|
if content.endswith('</p>'):
|
||||||
content = blog['object']['content']
|
content = \
|
||||||
if hashtagHtml not in content:
|
content[:len(content) - len('</p>')] + \
|
||||||
if content.endswith('</p>'):
|
hashtagHtml + '</p>'
|
||||||
content = \
|
else:
|
||||||
content[:len(content) - len('</p>')] + \
|
content += hashtagHtml
|
||||||
hashtagHtml + '</p>'
|
blog['object']['content'] = content
|
||||||
else:
|
|
||||||
content += hashtagHtml
|
|
||||||
blog['object']['content'] = content
|
|
||||||
|
|
||||||
# update the newswire tags if new ones have been found by
|
# update the newswire tags if new ones have been found by
|
||||||
# newswireHashtagProcessing
|
# newswireHashtagProcessing
|
||||||
|
|
Loading…
Reference in New Issue