mirror of https://gitlab.com/bashrc2/epicyon
Showing DM icon on posts
parent
36e921a06d
commit
fd7ff35582
|
@ -1270,8 +1270,9 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
showRepeatIcon = showRepeats
|
showRepeatIcon = showRepeats
|
||||||
isPublicRepeat = False
|
isPublicRepeat = False
|
||||||
showDMicon = False
|
showDMicon = False
|
||||||
|
postIsDM = isDM(postJsonObject)
|
||||||
if showRepeats:
|
if showRepeats:
|
||||||
if isDM(postJsonObject):
|
if postIsDM:
|
||||||
showDMicon = True
|
showDMicon = True
|
||||||
showRepeatIcon = False
|
showRepeatIcon = False
|
||||||
else:
|
else:
|
||||||
|
@ -1347,7 +1348,7 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
_logPostTiming(enableTimingLog, postStartTime, '9')
|
_logPostTiming(enableTimingLog, postStartTime, '9')
|
||||||
|
|
||||||
# Show a DM icon for DMs in the inbox timeline
|
# Show a DM icon for DMs in the inbox timeline
|
||||||
if showDMicon:
|
if postIsDM:
|
||||||
titleStr = \
|
titleStr = \
|
||||||
titleStr + ' <img loading="lazy" src="/' + \
|
titleStr + ' <img loading="lazy" src="/' + \
|
||||||
'icons/dm.png" class="DMicon"/>\n'
|
'icons/dm.png" class="DMicon"/>\n'
|
||||||
|
@ -1501,7 +1502,7 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
'" class="' + timeClass + '">' + publishedStr + '</a>\n'
|
'" class="' + timeClass + '">' + publishedStr + '</a>\n'
|
||||||
|
|
||||||
# change the background color for DMs in inbox timeline
|
# change the background color for DMs in inbox timeline
|
||||||
if showDMicon:
|
if postIsDM:
|
||||||
containerClassIcons = 'containericons dm'
|
containerClassIcons = 'containericons dm'
|
||||||
containerClass = 'container dm'
|
containerClass = 'container dm'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue