From 1291d8dcb406442972c543502377779f2c8fecc1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 12 Nov 2001 20:06:02 +0000 Subject: - Made a small change to the submission rate throttle --- modules/node.module | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index aa9fdb942..53ed3e971 100644 --- a/modules/node.module +++ b/modules/node.module @@ -681,9 +681,15 @@ 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: */ -- cgit v1.2.3