From 1994d2fc114e55fc7fbc99801f8adce78788b2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 9 Jun 2014 11:08:30 +0200 Subject: [PATCH] disable emailing of instant notifications (#4922) --- askbot/locale/fr/LC_MESSAGES/django.po | 4 ++-- askbot/tasks.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/askbot/locale/fr/LC_MESSAGES/django.po b/askbot/locale/fr/LC_MESSAGES/django.po index 212445ee..0e20b798 100644 --- a/askbot/locale/fr/LC_MESSAGES/django.po +++ b/askbot/locale/fr/LC_MESSAGES/django.po @@ -22,7 +22,7 @@ msgstr "" "Project-Id-Version: askbot\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-06-09 03:24-0500\n" -"PO-Revision-Date: 2014-06-09 10:45+0200\n" +"PO-Revision-Date: 2014-06-09 10:56+0200\n" "Last-Translator: Pierre Cros \n" "Language-Team: français <>\n" "Language: fr\n" @@ -4578,7 +4578,7 @@ msgstr "%(user)s a édité un %(post_link)s." #: models/__init__.py:3069 #, python-format msgid "%(user)s posted an %(post_link)s." -msgstr "%(user)s a publié un %(post_link)s." +msgstr "%(user)s a publié une %(post_link)s." #: models/__init__.py:3074 #, python-format diff --git a/askbot/tasks.py b/askbot/tasks.py index ec3e405b..a1569c02 100644 --- a/askbot/tasks.py +++ b/askbot/tasks.py @@ -212,6 +212,9 @@ def send_instant_notifications_about_activity_in_post( post = None, recipients = None, ): + # disable emailing of instant notifications + return + #reload object from the database post = Post.objects.get(id=post.id) if post.is_approved() is False: