- fixed parameter parsing for retweets and tweet likes

workspace
Brendan Howell 7 years ago
parent 344b694f4d
commit 9ed17f3767

@ -197,7 +197,8 @@ class PublicRelations(Bureau):
""" """
Re-Tweet a tweet from someone else. 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) self.t.t.statuses.retweet(id=tweet_id)
@add_command("twre", "Reply to Tweet") @add_command("twre", "Reply to Tweet")
@ -214,7 +215,8 @@ class PublicRelations(Bureau):
""" """
'Like' a tweet. '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) self.t.t.favorites.create(id=tweet_id)

Loading…
Cancel
Save