Don't show dm icons on dm timeline

merge-requests/30/head
Bob Mottram 2021-03-18 19:52:17 +00:00
parent 4c64119484
commit 5b5354004e
1 changed files with 4 additions and 3 deletions

View File

@ -507,9 +507,10 @@ def _desktopShowBoxJson(boxName: str, boxJson: {},
authorActor = postJsonObject['object']['attributedTo']
name = getNicknameFromActor(authorActor)
if postJsonObject['object'].get('inReplyTo'):
name += ''
if isDM(postJsonObject):
name += '📧'
name += ''
if boxName != 'dm':
if isDM(postJsonObject):
name += '📧'
if len(name) > 16:
name = name[:16]
else: