mirror of https://gitlab.com/bashrc2/epicyon
Comment out debug
parent
658ff4a44f
commit
8cdcc92763
|
@ -591,24 +591,24 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
|
||||||
|
|
||||||
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
||||||
emojiTags = {}
|
emojiTags = {}
|
||||||
print('TAG: displayName before tags: ' + displayName)
|
# print('TAG: displayName before tags: ' + displayName)
|
||||||
displayName = \
|
displayName = \
|
||||||
addHtmlTags(baseDir, httpPrefix,
|
addHtmlTags(baseDir, httpPrefix,
|
||||||
nickname, domain, displayName, [], emojiTags)
|
nickname, domain, displayName, [], emojiTags)
|
||||||
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
||||||
print('TAG: displayName after tags: ' + displayName)
|
# print('TAG: displayName after tags: ' + displayName)
|
||||||
# convert the emoji dictionary to a list
|
# convert the emoji dictionary to a list
|
||||||
emojiTagsList = []
|
emojiTagsList = []
|
||||||
for tagName, tag in emojiTags.items():
|
for tagName, tag in emojiTags.items():
|
||||||
emojiTagsList.append(tag)
|
emojiTagsList.append(tag)
|
||||||
print('TAG: emoji tags list: ' + str(emojiTagsList))
|
# print('TAG: emoji tags list: ' + str(emojiTagsList))
|
||||||
if not inProfileName:
|
if not inProfileName:
|
||||||
displayName = \
|
displayName = \
|
||||||
replaceEmojiFromTags(displayName, emojiTagsList, 'post header')
|
replaceEmojiFromTags(displayName, emojiTagsList, 'post header')
|
||||||
else:
|
else:
|
||||||
displayName = \
|
displayName = \
|
||||||
replaceEmojiFromTags(displayName, emojiTagsList, 'profile')
|
replaceEmojiFromTags(displayName, emojiTagsList, 'profile')
|
||||||
print('TAG: displayName after tags 2: ' + displayName)
|
# print('TAG: displayName after tags 2: ' + displayName)
|
||||||
|
|
||||||
# remove any stray emoji
|
# remove any stray emoji
|
||||||
while ':' in displayName:
|
while ':' in displayName:
|
||||||
|
@ -619,8 +619,8 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
|
||||||
displayName = displayName.replace(':' + emojiStr + ':', '').strip()
|
displayName = displayName.replace(':' + emojiStr + ':', '').strip()
|
||||||
if prevDisplayName == displayName:
|
if prevDisplayName == displayName:
|
||||||
break
|
break
|
||||||
print('TAG: displayName after tags 3: ' + displayName)
|
# print('TAG: displayName after tags 3: ' + displayName)
|
||||||
print('TAG: displayName after tag replacements: ' + displayName)
|
# print('TAG: displayName after tag replacements: ' + displayName)
|
||||||
|
|
||||||
return displayName
|
return displayName
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue