don't check edit throttle if throttle not enabled
darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz
This commit is contained in:
parent
1e4e6eee32
commit
7745917305
@ -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.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user