mirror of https://gitlab.com/bashrc2/epicyon
Show DM icon in inbox timeline
parent
1426fdb5d7
commit
47e70a0fdf
|
@ -1093,9 +1093,11 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
""" Shows a single post as html
|
""" Shows a single post as html
|
||||||
"""
|
"""
|
||||||
# If this is the inbox timeline then don't show the repeat icon on any DMs
|
# If this is the inbox timeline then don't show the repeat icon on any DMs
|
||||||
|
showDMicon=False
|
||||||
if showRepeats:
|
if showRepeats:
|
||||||
if isDM(postJsonObject):
|
if isDM(postJsonObject):
|
||||||
showRepeats=False
|
showRepeats=False
|
||||||
|
showDMicon=True
|
||||||
|
|
||||||
titleStr=''
|
titleStr=''
|
||||||
isAnnounced=False
|
isAnnounced=False
|
||||||
|
@ -1166,6 +1168,10 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
else:
|
else:
|
||||||
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
||||||
|
|
||||||
|
# Show a DM icon for DMs in the inbox timeline
|
||||||
|
if showDMicon:
|
||||||
|
titleStr='<img src="/icons/scope_dm.png" class="announceOrReply"/>'+titleStr
|
||||||
|
|
||||||
if showRepeats:
|
if showRepeats:
|
||||||
if isAnnounced:
|
if isAnnounced:
|
||||||
if postJsonObject['object'].get('attributedTo'):
|
if postJsonObject['object'].get('attributedTo'):
|
||||||
|
|
Loading…
Reference in New Issue