diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-10 14:43:35 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-10 14:43:35 -0500 |
commit | 7745917305a226fd70ea04334c7d2d0d09e3b9e9 (patch) | |
tree | cbb90b4fdfea78e69d3f1200b96130fac18a9be2 /classes/Notice.php | |
parent | 1e4e6eee32c48eaac7f606b5558b7214451de4c9 (diff) |
don't check edit throttle if throttle not enabled
darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 031ccd583..ceec7a2fa 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -100,7 +100,7 @@ class Notice extends Memcached_DataObject return _('Problem saving notice. Unknown user.'); } - if (!Notice::checkEditThrottle($profile_id)) { + if (common_config('throttle', 'enabled') && !Notice::checkEditThrottle($profile_id)) { common_log(LOG_WARNING, 'Excessive posting by profile #' . $profile_id . '; throttled.'); return _('Too many notices too fast; take a breather and post again in a few minutes.'); } |