From 259e986b953b632cfc356ee8a63b727de0f62bc7 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Sun, 27 Aug 2023 02:55:54 -0700 Subject: [PATCH] fix logic in ttweet.announce_text.rtm_msg --- src/talenttweet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/talenttweet.py b/src/talenttweet.py index df66136..53ca8ad 100644 --- a/src/talenttweet.py +++ b/src/talenttweet.py @@ -206,7 +206,8 @@ class TalentTweet: def rtm_msg(TEMPLATE: str, rtm_author_username: str): nonlocal ret if (self.rt_author_id is not None and self.rt_author_id != -1) \ - or (self.quote_tweeted is not None and self.quote_tweeted != -1): # rtm tweet is from talent; rtm should be everyone + or (self.quote_tweeted is not None and self.quote_tweeted != -1) \ + or (self.reply_to is not None and self.reply_to != -1): # rtm tweet is from talent; rtm should be everyone rtm_names = [f'@/{util.get_username_with_company(x)}' for x in self.rt_mentions] between = f' from {rtm_author_username} ' ret += TEMPLATE.format(author_username, between, ", ".join(rtm_names))