filter: Use "channel" operator for the Filter class.

Update the Filter class to use "channel" as the canoncial operator
for streams, but keep using "stream" for user-facing text and URLs.

When searching, "channel" does not create any suggestions until
a colon is added and then it shows suggestions with "stream". And
when a search string with channel as an operator is entered, then
it is replaced by "stream" as well.

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard
2024-04-05 19:41:15 +02:00
committed by Tim Abbott
parent e3a521f4ba
commit 1e7c5b38f8
14 changed files with 208 additions and 127 deletions

View File

@@ -92,6 +92,7 @@ export function is_create_new_stream_narrow(): boolean {
}
export const allowed_web_public_narrows = [
"channel",
"streams",
"stream",
"topic",