summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-12 20:06:02 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-12 20:06:02 +0000
commit1291d8dcb406442972c543502377779f2c8fecc1 (patch)
tree005d980f477e5d868f1f5d8e439f9091f0221248 /modules/node.module
parentf5a9ecccb1f0ee3c9c6b29834c960ddca8bd66d6 (diff)
downloadbrdo-1291d8dcb406442972c543502377779f2c8fecc1.tar.gz
brdo-1291d8dcb406442972c543502377779f2c8fecc1.tar.bz2
- Made a small change to the submission rate throttle
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module
index aa9fdb942..53ed3e971 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -681,10 +681,16 @@ function node_preview($edit) {
}
function node_submit($node) {
-
global $user;
/*
+ ** Verify a user's submission rate and avoid duplicate nodes being
+ ** inserted:
+ */
+
+ throttle("node", variable_get("max_node_rate", 900));
+
+ /*
** Fixup the node when required:
*/