We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee15e3 commit 47170daCopy full SHA for 47170da
Allura/allura/lib/spam/akismetfilter.py
@@ -16,6 +16,7 @@
16
# under the License.
17
18
import logging
19
+import os
20
21
from tg import request
22
from tg import tmpl_context as c
@@ -25,6 +26,10 @@
25
26
from allura.lib.spam import SpamFilter
27
28
try:
29
+ if not os.environ.get('PYTHON_AKISMET_TIMEOUT'):
30
+ # default would be 1 otherwise. Must be set before import akismet
31
+ os.environ['PYTHON_AKISMET_TIMEOUT'] = '3'
32
+
33
import akismet
34
AKISMET_AVAILABLE = True
35
except ImportError:
0 commit comments