From 7745917305a226fd70ea04334c7d2d0d09e3b9e9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 10 Dec 2008 14:43:35 -0500 Subject: [PATCH] don't check edit throttle if throttle not enabled darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Notice.php b/classes/Notice.php index 031ccd5838..ceec7a2fa6 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.'); } -- 2.39.5