Don't send offline email notifications to bots

(imported from commit f7547f49580bf905c05a4fa2aa064fb82b7b4036)
This commit is contained in:
Leo Franchi 2013-05-13 12:10:14 -04:00
parent 7f04c8f9b9
commit c5d28a78a2
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ def process_new_message(data):
user_profile = get_user_profile_by_id(user_profile_id)
if user_profile.enable_offline_email_notifications:
if user_profile.enable_offline_email_notifications and \
not user_profile.is_bot:
event = {"user_profile_id": user_profile_id,
"message_id": message.id,
"timestamp": time.time()}