don't check edit throttle if throttle not enabled

darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz
This commit is contained in:
Evan Prodromou 2008-12-10 14:43:35 -05:00
parent 1e4e6eee32
commit 7745917305
1 changed files with 1 additions and 1 deletions

View File

@ -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.');
}