disable emailing of instant notifications (#4922)

This commit is contained in:
Frédéric Péters 2014-06-09 11:08:30 +02:00
parent 36985d918b
commit 1994d2fc11
2 changed files with 5 additions and 2 deletions

View File

@ -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 <pcros@entrouvert.com>\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

View File

@ -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: