format user and display name for notifications

workspace
Brendan Howell 6 years ago
parent 6c73991a7b
commit 532f864f56

@ -331,9 +331,12 @@ class PublicRelations(Bureau):
if len(notifications) > 0: if len(notifications) > 0:
prn.set(text_type="B") prn.set(text_type="B")
prn.text("NOTIFICATIONS:\r\n") prn.text("NOTIFICATIONS:\r\n")
prn.set(text_type="NORMAL")
for note in notifications: for note in notifications:
prn.text(note["type"] + " " + str(note["created_at"]) + " from " + prn.text(note["type"] + " " + str(note["created_at"]) + " from " +
note["account"] + ":\r\n" + note["status"] + "\r\n") note["account"]["display_name"] + " (" +
note["account"]["acct"] + "):\r\n" + note["status"] +
"\r\n")
prn.text("\r\n\r\n") prn.text("\r\n\r\n")
prn.cut() prn.cut()

Loading…
Cancel
Save