forked from indymedia/epicyon
Only do quotes substitution with html
parent
5efc685220
commit
1ba6861e88
|
@ -639,7 +639,7 @@ def addHtmlTags(baseDir: str, httpPrefix: str,
|
||||||
if longWordsList:
|
if longWordsList:
|
||||||
content = removeLongWords(content, maxWordLength, longWordsList)
|
content = removeLongWords(content, maxWordLength, longWordsList)
|
||||||
content = content.replace(' --linebreak-- ', '</p><p>')
|
content = content.replace(' --linebreak-- ', '</p><p>')
|
||||||
return '<p>' + htmlReplaceQuoteMarks(content) + '</p>'
|
return '<p>' + content + '</p>'
|
||||||
|
|
||||||
|
|
||||||
def getMentionsFromHtml(htmlText: str,
|
def getMentionsFromHtml(htmlText: str,
|
||||||
|
|
|
@ -57,6 +57,7 @@ from bookmarks import bookmarkedByPerson
|
||||||
from announce import announcedByPerson
|
from announce import announcedByPerson
|
||||||
from blocking import isBlocked
|
from blocking import isBlocked
|
||||||
from blocking import isBlockedHashtag
|
from blocking import isBlockedHashtag
|
||||||
|
from content import htmlReplaceQuoteMarks
|
||||||
from content import removeTextFormatting
|
from content import removeTextFormatting
|
||||||
from content import switchWords
|
from content import switchWords
|
||||||
from content import getMentionsFromHtml
|
from content import getMentionsFromHtml
|
||||||
|
@ -4260,8 +4261,10 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
objectContent = removeTextFormatting(objectContent)
|
objectContent = removeTextFormatting(objectContent)
|
||||||
objectContent = \
|
objectContent = \
|
||||||
switchWords(baseDir, nickname, domain, objectContent)
|
switchWords(baseDir, nickname, domain, objectContent)
|
||||||
|
objectContent = htmlReplaceQuoteMarks(objectContent)
|
||||||
else:
|
else:
|
||||||
objectContent = postJsonObject['object']['content']
|
objectContent = \
|
||||||
|
htmlReplaceQuoteMarks(postJsonObject['object']['content'])
|
||||||
|
|
||||||
if not postIsSensitive:
|
if not postIsSensitive:
|
||||||
contentStr = objectContent + attachmentStr
|
contentStr = objectContent + attachmentStr
|
||||||
|
|
Loading…
Reference in New Issue