From 532f864f566e9aa23282da50340ce92b585804f2 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 3 Jan 2019 00:09:57 +0100 Subject: [PATCH] format user and display name for notifications --- screenless/bureau/publicrelations/publicrelations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 9cf3eb1..1ce1948 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -331,9 +331,12 @@ class PublicRelations(Bureau): if len(notifications) > 0: prn.set(text_type="B") prn.text("NOTIFICATIONS:\r\n") + prn.set(text_type="NORMAL") for note in notifications: prn.text(note["type"] + " " + str(note["created_at"]) + " from " + - note["account"] + ":\r\n" + note["status"] + "\r\n") + note["account"]["display_name"] + " (" + + note["account"]["acct"] + "):\r\n" + note["status"] + + "\r\n") prn.text("\r\n\r\n") prn.cut()