Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
embedded bot: Use server settings for storage_size_limit.
PIG208e86b2c8d5850
diff --git a/zerver/lib/bot_lib.py b/zerver/lib/bot_lib.pyindex 7e651377de6..43b6ff42593 100644--- a/zerver/lib/bot_lib.py+++ b/zerver/lib/bot_lib.py@@ -3,6 +3,7 @@ import jsonimport osfrom typing import Any, Callable, Dict, Optional+from django.conf import settingsfrom django.utils.translation import ugettext as _from zerver.lib.actions import (@@ -41,7 +42,7 @@ def get_bot_handler(service_name: str) -> Any:class StateHandler:- storage_size_limit: int = 10000000 # TODO: Store this in the server configuration model.+ storage_size_limit: int = settings.USER_STATE_SIZE_LIMITdef __init__(self, user_profile: UserProfile) -> None:self.user_profile = user_profile