mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Have exclude_topic_mutes() accept a stream id.
We want to convert stream names to stream ids as close to the "edges" of our system as possible, so we let our caller do the work of finding the stream id for a stream narrow.
This commit is contained in:
@@ -298,6 +298,8 @@ def build_custom_checkers(by_lang):
|
||||
('zerver/lib/actions.py', 'get_stream(signups_stream, admin_realm)'),
|
||||
# Here we need get_stream to access streams you've since unsubscribed from.
|
||||
('zerver/views/messages.py', 'stream = get_stream(operand, self.user_profile.realm)'),
|
||||
# Use stream_id to exclude mutes.
|
||||
('zerver/views/messages.py', 'stream_id = get_stream(stream_name, user_profile.realm).id'),
|
||||
]),
|
||||
'description': 'Please use access_stream_by_*() to fetch Stream objects',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user