fix attributes for toot user names

workspace
Brendan Howell 7 years ago
parent a5b80dec0f
commit b6f5335e19

@ -259,7 +259,7 @@ class PublicRelations(Bureau):
photo = self.send("PX", "photo")["photo"] photo = self.send("PX", "photo")["photo"]
media = self.masto.media_post(photo) media = self.masto.media_post(photo)
post = self.masto.status_post("", media_ids=[media]) post = self.masto.status_post("", media_ids=[media])
self.debug(post) self.log.debug(str(post))
@add_command("tootline", "Print Recent Toots") @add_command("tootline", "Print Recent Toots")
def tootline(self, data=None): def tootline(self, data=None):
@ -282,7 +282,7 @@ class PublicRelations(Bureau):
out = "" out = ""
for t in toots: for t in toots:
prn.set(text_type="U") prn.set(text_type="U")
username = t.account.name.encode("cp437", "ignore") username = t.account.display_name.encode("cp437", "ignore")
prn._raw(username) prn._raw(username)
prn.text("\r\n") prn.text("\r\n")
prn.set(text_type="NORMAL") prn.set(text_type="NORMAL")

Loading…
Cancel
Save