Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Rename allowed_web_public_narrows.
opmkumarefafe789bebb
diff --git a/web/src/filter.ts b/web/src/filter.tsindex 5ce33334a6a..6c09b595b3d 100644--- a/web/src/filter.ts+++ b/web/src/filter.ts@@ -865,7 +865,7 @@ export class Filter {if (term.operand === undefined) {return false;}- if (!hash_parser.allowed_web_public_narrows.includes(term.operator)) {+ if (!hash_parser.allowed_web_public_narrow_operators.includes(term.operator)) {return false;}}diff --git a/web/src/hash_parser.ts b/web/src/hash_parser.tsindex 011c3d5cc5f..9e18ebe374b 100644--- a/web/src/hash_parser.ts+++ b/web/src/hash_parser.ts@@ -116,7 +116,7 @@ export function is_in_specified_hash_category(hash_categories: string[]): booleareturn hash_categories.includes(main_hash);}-export const allowed_web_public_narrows = [+export const allowed_web_public_narrow_operators = ["channels","channel","streams",@@ -157,7 +157,7 @@ export function is_spectator_compatible(hash: string): boolean {if (main_hash === "narrow") {const hash_section = get_hash_section(hash);- if (!allowed_web_public_narrows.includes(hash_section)) {+ if (!allowed_web_public_narrow_operators.includes(hash_section)) {return false;}return true;diff --git a/web/src/message_view.ts b/web/src/message_view.tsindex 0493879b366..cacf4092e20 100644--- a/web/src/message_view.ts+++ b/web/src/message_view.ts@@ -444,7 +444,8 @@ export let show = (raw_terms: NarrowTerm[], show_opts: ShowMessageViewOpts): voi// policy?!is_combined_feed_global_view &&raw_terms.some(- (raw_term) => !hash_parser.allowed_web_public_narrows.includes(raw_term.operator),+ (raw_term) =>+ !hash_parser.allowed_web_public_narrow_operators.includes(raw_term.operator),)) {spectators.login_to_access();