diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-12 20:06:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-12 20:06:02 +0000 |
commit | 1291d8dcb406442972c543502377779f2c8fecc1 (patch) | |
tree | 005d980f477e5d868f1f5d8e439f9091f0221248 /modules/node.module | |
parent | f5a9ecccb1f0ee3c9c6b29834c960ddca8bd66d6 (diff) | |
download | brdo-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.module | 8 |
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: */ |