Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

decorator: Do not set remote_server.rate_limits.

Zixuan James Li3bc78d24735a
diff --git a/zerver/decorator.py b/zerver/decorator.py
index 9c1f8ac9529..a0886aa4cfb 100644
--- a/zerver/decorator.py
+++ b/zerver/decorator.py
@@ -264,7 +264,6 @@ def validate_api_key(
if get_subdomain(request) != Realm.SUBDOMAIN_FOR_ROOT_DOMAIN:
raise JsonableError(_("Invalid subdomain for push notifications bouncer"))
request.user = remote_server
- remote_server.rate_limits = ""
# Skip updating UserActivity, since remote_server isn't actually a UserProfile object.
process_client(request)
return remote_server