From 24877eb53e2c751c8c20246071c3420c7d308979 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Fri, 26 Apr 2024 00:15:32 -0700 Subject: [PATCH] add cross-agency case --- src/talenttweet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/talenttweet.py b/src/talenttweet.py index 88812a2..493f469 100644 --- a/src/talenttweet.py +++ b/src/talenttweet.py @@ -311,9 +311,11 @@ class TalentTweet: rtm_msg(QUOTED_TWEET_MENTIONS_B, quoted_username) else: ret += QUOTE_TWEET.format(author_username, quoted_username) - elif len(self.mentions) > 0: # standalone tweet + elif len(self.mentions) > 0: # standalone tweet that mentions other ret += TWEET.format(author_username, ", ".join(mention_usernames)) mention_usernames.clear() + elif len(self.rt_mentions) > 0: # reply to non-talent tweet that mentions B + rtm_msg(REPLY_TO_MENTION_B, "") else: raise ValueError( f"TalentTweet {self.tweet_id} has insufficient other parties"