mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
Use stream_id for by_stream__uri().
The stream_list test that was fixed here was sort of broken. It accomplished the main goal of verifying what gets rendered, but now the data setup part is more like the actual app code (and simpler, too).
This commit is contained in:
@@ -242,7 +242,7 @@ exports.update_calculated_fields = function (sub) {
|
||||
// Guest users can't access subscribers of any(public or private) non-subscribed streams.
|
||||
sub.can_access_subscribers = page_params.is_admin || sub.subscribed || !page_params.is_guest &&
|
||||
!sub.invite_only;
|
||||
sub.preview_url = hash_util.by_stream_uri(sub.name);
|
||||
sub.preview_url = hash_util.by_stream_uri(sub.stream_id);
|
||||
exports.render_stream_description(sub);
|
||||
exports.update_subscribers_count(sub);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user