From b6f5335e19e462890c991f852ca7460794133c30 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Mon, 30 Apr 2018 02:40:28 +0200 Subject: [PATCH] fix attributes for toot user names --- screenless/bureau/publicrelations/publicrelations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index e0b6974..02c29c5 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -259,7 +259,7 @@ class PublicRelations(Bureau): photo = self.send("PX", "photo")["photo"] media = self.masto.media_post(photo) post = self.masto.status_post("", media_ids=[media]) - self.debug(post) + self.log.debug(str(post)) @add_command("tootline", "Print Recent Toots") def tootline(self, data=None): @@ -282,7 +282,7 @@ class PublicRelations(Bureau): out = "" for t in toots: prn.set(text_type="U") - username = t.account.name.encode("cp437", "ignore") + username = t.account.display_name.encode("cp437", "ignore") prn._raw(username) prn.text("\r\n") prn.set(text_type="NORMAL")