|
|
|
@ -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.log.debug(str(post))
|
|
|
|
|
#self.log.debug(str(post))
|
|
|
|
|
|
|
|
|
|
@add_command("tootline", "Print Recent Toots")
|
|
|
|
|
def tootline(self, data=None):
|
|
|
|
@ -308,7 +308,7 @@ class PublicRelations(Bureau):
|
|
|
|
|
im.thumbnail((576, 576), PIL.Image.ANTIALIAS)
|
|
|
|
|
prn.image(im, impl="bitImageColumn")
|
|
|
|
|
|
|
|
|
|
tw_shortcode = self.short_tweet_id(t.id)
|
|
|
|
|
tw_shortcode = self.short_tweet_id(str(t["id"]))
|
|
|
|
|
prn.barcode("PRmad." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.text("\r\n\r\n")
|
|
|
|
|
|
|
|
|
|