mirror of https://github.com/zulip/zulip.git
get_events_backend: Validate narrow type correctly.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f1707cfec6
commit
6e33b9c6f2
|
@ -72,7 +72,7 @@ def get_events_backend(request: HttpRequest, user_profile: UserProfile,
|
|||
event_types: Optional[Sequence[str]]=REQ(default=None, validator=check_list(check_string),
|
||||
intentionally_undocumented=True),
|
||||
dont_block: bool=REQ(default=False, validator=check_bool),
|
||||
narrow: Iterable[Sequence[str]]=REQ(default=[], validator=check_list(None),
|
||||
narrow: Iterable[Sequence[str]]=REQ(default=[], validator=check_list(check_list(check_string)),
|
||||
intentionally_undocumented=True),
|
||||
lifespan_secs: int=REQ(default=0, converter=to_non_negative_int,
|
||||
intentionally_undocumented=True),
|
||||
|
|
Loading…
Reference in New Issue