mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Don't clutter modmail with ban messages
This commit is contained in:
@@ -364,7 +364,9 @@ def add_message(message):
|
||||
if message.to_id:
|
||||
with g.make_lock(messages_lock_key(message.to_id)):
|
||||
add_message_nolock(message.to_id, message)
|
||||
if message.sr_id:
|
||||
# Messages to a subreddit should end in its inbox. Messages
|
||||
# FROM a subreddit (currently, just ban messages) should NOT
|
||||
if message.sr_id and not message.from_sr:
|
||||
with g.make_lock(sr_messages_lock_key(message.sr_id)):
|
||||
add_sr_message_nolock(message.sr_id, message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user