fix for last message id in mastodon api

workspace
Brendan Howell 4 years ago
parent 345de36b2f
commit 0d66ca43b0

@ -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())

Loading…
Cancel
Save