]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't check edit throttle if throttle not enabled
authorEvan Prodromou <evan@prodromou.name>
Wed, 10 Dec 2008 19:43:35 +0000 (14:43 -0500)
committerEvan Prodromou <evan@prodromou.name>
Wed, 10 Dec 2008 19:43:35 +0000 (14:43 -0500)
darcs-hash:20081210194335-84dde-a74fe65acfa707eae5499cdf47850d353562ccb8.gz

classes/Notice.php

index 031ccd58386a3a115038121fc6f6e461946fe93f..ceec7a2fa6ccb5175c1c539085c67ddc8a43b2c7 100644 (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.');
         }