From 47e70a0fdf2b383d2b1dfd995d87961afe3d29c3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Aug 2019 18:53:20 +0100 Subject: [PATCH] Show DM icon in inbox timeline --- webinterface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webinterface.py b/webinterface.py index cda928c58..62ae61478 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1093,9 +1093,11 @@ def individualPostAsHtml(baseDir: str, \ """ Shows a single post as html """ # If this is the inbox timeline then don't show the repeat icon on any DMs + showDMicon=False if showRepeats: if isDM(postJsonObject): showRepeats=False + showDMicon=True titleStr='' isAnnounced=False @@ -1166,6 +1168,10 @@ def individualPostAsHtml(baseDir: str, \ else: titleStr+='@'+actorNickname+'@'+actorDomain+'' + # Show a DM icon for DMs in the inbox timeline + if showDMicon: + titleStr=''+titleStr + if showRepeats: if isAnnounced: if postJsonObject['object'].get('attributedTo'):