From: Evan Prodromou Date: Wed, 10 Dec 2008 19:43:35 +0000 (-0500) Subject: don't check edit throttle if throttle not enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7745917305a226fd70ea04334c7d2d0d09e3b9e9;p=quix0rs-gnu-social.git don't check edit throttle if throttle not enabled darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz --- 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.'); }