forked from indymedia/epicyon
Add a space to separate hashtags
parent
c691cff82d
commit
37fee435ec
|
@ -223,7 +223,7 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
|
||||||
'type': 'Hashtag'
|
'type': 'Hashtag'
|
||||||
}
|
}
|
||||||
hashtagHtml = \
|
hashtagHtml = \
|
||||||
"<a href=\"" + hashtagUrl + \
|
" <a href=\"" + hashtagUrl + \
|
||||||
"\" class=\"mention hashtag\" " + \
|
"\" class=\"mention hashtag\" " + \
|
||||||
"rel=\"tag\">#<span>" + \
|
"rel=\"tag\">#<span>" + \
|
||||||
htId + "</span></a>"
|
htId + "</span></a>"
|
||||||
|
@ -253,8 +253,9 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
|
||||||
htId + "</span></a>"
|
htId + "</span></a>"
|
||||||
content = postJsonObject['object']['content']
|
content = postJsonObject['object']['content']
|
||||||
if hashtagHtml in content:
|
if hashtagHtml in content:
|
||||||
postJsonObject['object']['content'] = \
|
content = \
|
||||||
content.replace(hashtagHtml, '')
|
content.replace(hashtagHtml, '').replace(' ', ' ')
|
||||||
|
postJsonObject['object']['content'] = content
|
||||||
del postJsonObject['object']['tag'][htId]
|
del postJsonObject['object']['tag'][htId]
|
||||||
actionOccurred = True
|
actionOccurred = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue