From 0d66ca43b0c9f2f32d1c955a26803401629e4c45 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Fri, 13 Nov 2020 00:53:40 +0100 Subject: [PATCH] fix for last message id in mastodon api --- screenless/bureau/publicrelations/publicrelations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index bee74a4..b57201d 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -359,7 +359,7 @@ class PublicRelations(Bureau): b" (" + note.account.acct.encode("cp437", "ignore") + b")" prn.text(note["type"] + " " + str(note["created_at"]) + " from ") prn._raw(username) - prn.text(":\r\n" + str(note.status) + "\r\n") + prn.text(":\r\n" + str(note["status"]) + "\r\n") with self.dbenv.begin(db=self.tweetdb, write=True) as txn: txn.put(shortcode.encode(), tweet_id.encode())