summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-07 09:43:50 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-07 09:43:50 -0800
commit986a32223177a759b0ef071822d227011ee1b3c7 (patch)
treeb9f601a991bdb6f73eafeabb40a72e2f739c5150 /lib
parent16a6aa53907de29c6d993fd18e62d45e4380f451 (diff)
Limit duplicate notices in a particular time period (default 60s)
We disallow posting a notice with duplicate content more than once a minute. Conflicts: config.php.sample
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common.php b/lib/common.php
index 0355d01e3..917fdeafa 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -85,7 +85,8 @@ $config =
'broughtbyurl' => null,
'closed' => false,
'inviteonly' => false,
- 'private' => false),
+ 'private' => false,
+ 'dupelimit' => 60), # default for same person saying the same thing
'syslog' =>
array('appname' => 'laconica', # for syslog
'priority' => 'debug'), # XXX: currently ignored