From 071292d1df7d5a582f2862b6264b14d8512363b4 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Wed, 26 Dec 2018 20:31:38 +0100 Subject: [PATCH] use extended tweet field --- screenless/bureau/publicrelations/publicrelations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 12866c5..7d3f55d 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -149,7 +149,7 @@ class PublicRelations(Bureau): prn._raw(username) prn.text("\r\n") prn.set(text_type="NORMAL") - twtext = html.unescape(t["text"]) + twtext = html.unescape(t["full_text"]) t_wrapped = textwrap.fill(twtext, width=48) + "\r\n" t_enc = t_wrapped.encode("cp437", "ignore") prn._raw(t_enc) @@ -189,7 +189,7 @@ class PublicRelations(Bureau): prn._raw(username) prn.text("\r\n") prn.set(text_type="NORMAL") - twtext = html.unescape(tweet["text"]) + twtext = html.unescape(tweet["full_text"]) t_wrapped = textwrap.fill(twtext, width=48) + "\r\n" t_enc = t_wrapped.encode("cp437", "ignore") prn._raw(t_enc)