We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 77459173 authored by Evan Prodromou's avatar Evan Prodromou

don't check edit throttle if throttle not enabled

parent 1e4e6eee
......@@ -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.');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment