aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-05-29 17:57:09 +0200
committerGravatar GitHub <[email protected]>2020-05-29 17:57:09 +0200
commitd12e84fe6834a0bc574e365a3283bc358c2ae4d9 (patch)
tree6e15d8677db726bbc8afa3cba42d56e400bae893
parentMerge pull request #947 from python-discord/redis_persistence (diff)
Ignore response when posting python news
Sometimes a mailing list user doesn't press respond correctly to the email, and so a response is sent as a separate thread. To keep only new threads in the channel, we need to ignore those.
-rw-r--r--bot/cogs/python_news.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/python_news.py b/bot/cogs/python_news.py
index d28af4a0b..d15d0371e 100644
--- a/bot/cogs/python_news.py
+++ b/bot/cogs/python_news.py
@@ -153,6 +153,7 @@ class PythonNews(Cog):
if (
thread_information["thread_id"] in existing_news["data"][maillist]
+ or 'Re: ' in thread_information["subject"]
or new_date.date() < date.today()
):
continue