From 91f5bdb54df228e30527dd65b872078e2edc9bed Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 8 Dec 2020 19:09:28 +0100 Subject: [PATCH] try to get home timeline from hometown --- screenless/bureau/publicrelations/publicrelations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 7bf5291..6ab9536 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -368,11 +368,10 @@ class PublicRelations(Bureau): # TODO: add fancier formatting i.e. inverted text for username/handle # TODO: clean this up to use the built in formatting from escpos lib # and make a print_status function to use for notifications too - toots = self.masto.timeline(limit=count) + toots = self.masto.timeline(timeline="public", limit=count) out = "" for t in toots: prn.set(underline=1) - print("toot from:" + str(t.account)) username = str(t.account.display_name) acct = str(t.account.acct) prn.textln(username + " (" + acct + ")")