mirror of https://github.com/zulip/zulip.git
decorator: Do not set remote_server.rate_limits.
In b46af40bd3
,
we set this attribute because back then we might call `rate_limit_user`
on `RemoteZulipServer`.
This is no longer the case as `RemoteZulipServer` now has its own rate
limiting and we never call `rate_limit_user` without an `isinstance` check
for `UserProfile`.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
42fddd5a1e
commit
3bc78d2473
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue