From 9ed17f376786c9892a03778b6ff5569faa8233f1 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sun, 18 Mar 2018 00:29:44 +0100 Subject: [PATCH] - fixed parameter parsing for retweets and tweet likes --- screenless/bureau/publicrelations/publicrelations.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 947fbc7..b8e8b37 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -197,7 +197,8 @@ class PublicRelations(Bureau): """ Re-Tweet a tweet from someone else. """ - tweet_id = self.get_tweet_id(data) + shortcode, _ = data.split(".") + tweet_id = self.get_tweet_id(shortcode) self.t.t.statuses.retweet(id=tweet_id) @add_command("twre", "Reply to Tweet") @@ -214,7 +215,8 @@ class PublicRelations(Bureau): """ 'Like' a tweet. """ - tweet_id = self.get_tweet_id(data) + shortcode, _ = data.split(".") + tweet_id = self.get_tweet_id(shortcode) self.t.t.favorites.create(id=tweet_id)