Browse Source

renamed setting

Rafał Pitoń 8 years ago
parent
commit
253ca5942b
3 changed files with 12 additions and 12 deletions
  1. 10 10
      docs/developers/settings.rst
  2. 1 1
      misago/conf/defaults.py
  3. 1 1
      misago/users/validators.py

+ 10 - 10
docs/developers/settings.rst

@@ -291,7 +291,7 @@ In case of more events than specified being found, oldest events will be truncat
 
 
 
 
 MISAGO_HOURLY_POST_LIMIT
 MISAGO_HOURLY_POST_LIMIT
------------------------
+------------------------
 
 
 Hourly limit of posts that may be posted from single account. Fail-safe for situations when forum is flooded by spam bot. Change to 0 to lift this restriction.
 Hourly limit of posts that may be posted from single account. Fail-safe for situations when forum is flooded by spam bot. Change to 0 to lift this restriction.
 
 
@@ -382,12 +382,6 @@ Standard configs as of PostgreSQL 9.5 are: ``dutch``, ``english``, ``finnish``,
    Items in Misago are usually indexed in search engine on save or update. If you change search configuration, you'll need to rebuild search for past posts to get reindexed using new configuration. Misago comes with ``rebuildpostssearch`` tool for this purpose.
    Items in Misago are usually indexed in search engine on save or update. If you change search configuration, you'll need to rebuild search for past posts to get reindexed using new configuration. Misago comes with ``rebuildpostssearch`` tool for this purpose.
 
 
 
 
-MISAGO_STOP_FORUM_SPAM_USE
---------------------------
-
-This settings allows you to decide wheter of not `Stop Forum Spam <http://www.stopforumspam.com/>`_ database should be used to validate IPs and emails during new users registrations.
-
-
 MISAGO_STOP_FORUM_SPAM_MIN_CONFIDENCE
 MISAGO_STOP_FORUM_SPAM_MIN_CONFIDENCE
 -------------------------------------
 -------------------------------------
 
 
@@ -395,19 +389,19 @@ Minimum confidence returned by `Stop Forum Spam <http://www.stopforumspam.com/>`
 
 
 
 
 MISAGO_THREADS_ON_INDEX
 MISAGO_THREADS_ON_INDEX
---------------------------
+-----------------------
 
 
 Change this setting to ``False`` to display categories list instead of threads list on board index.
 Change this setting to ``False`` to display categories list instead of threads list on board index.
 
 
 
 
 MISAGO_THREADS_PER_PAGE
 MISAGO_THREADS_PER_PAGE
----------------------
+-----------------------
 
 
 Controls number of threads displayed on page. Greater numbers can increase number of objects loaded into memory and thus depending on features enabled greatly increase memory usage.
 Controls number of threads displayed on page. Greater numbers can increase number of objects loaded into memory and thus depending on features enabled greatly increase memory usage.
 
 
 
 
 MISAGO_THREADS_TAIL
 MISAGO_THREADS_TAIL
-------------------
+-------------------
 
 
 Defines minimal number of threads for lists last page. If number of threads on last page is smaller or equal to one specified in this setting, last page will be appended to previous page instead.
 Defines minimal number of threads for lists last page. If number of threads on last page is smaller or equal to one specified in this setting, last page will be appended to previous page instead.
 
 
@@ -418,6 +412,12 @@ MISAGO_THREAD_TYPES
 List of clasess defining thread types.
 List of clasess defining thread types.
 
 
 
 
+MISAGO_USE_STOP_FORUM_SPAM
+--------------------------
+
+This settings allows you to decide wheter of not `Stop Forum Spam <http://www.stopforumspam.com/>`_ database should be used to validate IPs and emails during new users registrations.
+
+
 MISAGO_USERS_PER_PAGE
 MISAGO_USERS_PER_PAGE
 ---------------------
 ---------------------
 
 

+ 1 - 1
misago/conf/defaults.py

@@ -199,7 +199,7 @@ MISAGO_NEW_REGISTRATIONS_VALIDATORS = (
     'misago.users.validators.validate_with_sfs',
     'misago.users.validators.validate_with_sfs',
 )
 )
 
 
-MISAGO_STOP_FORUM_SPAM_USE = True
+MISAGO_USE_STOP_FORUM_SPAM = True
 MISAGO_STOP_FORUM_SPAM_MIN_CONFIDENCE = 80
 MISAGO_STOP_FORUM_SPAM_MIN_CONFIDENCE = 80
 
 
 
 

+ 1 - 1
misago/users/validators.py

@@ -124,7 +124,7 @@ SFS_API_URL = 'http://api.stopforumspam.org/api?email=%(email)s&ip=%(ip)s&f=json
 
 
 
 
 def validate_with_sfs(ip, username, email):
 def validate_with_sfs(ip, username, email):
-    if settings.MISAGO_STOP_FORUM_SPAM_USE:
+    if settings.MISAGO_USE_STOP_FORUM_SPAM:
         _real_validate_with_sfs(ip, email)
         _real_validate_with_sfs(ip, email)