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