From 42a7b7e9824f59a605998b2270f9ecc2d179fb4b Mon Sep 17 00:00:00 2001 From: Kislay Verma Date: Tue, 16 Jul 2024 02:11:25 +0530 Subject: [PATCH] compose: Support `channel` in transforming stream-topic links. This commit extends the work in #29302 to support the new "channel" operator, which is synonymous to the "stream" operator in transforming stream-topic links to the #**stream>topic** syntax. --- web/src/hash_util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/hash_util.ts b/web/src/hash_util.ts index a40192c7d6..74ab27a878 100644 --- a/web/src/hash_util.ts +++ b/web/src/hash_util.ts @@ -304,8 +304,8 @@ export function decode_stream_topic_from_url( return null; } // This check is important as a malformed url - // may have `stream`, `topic` or `near:` in a wrong order - if (terms[0]?.operator !== "stream") { + // may have `stream` / `channel`, `topic` or `near:` in a wrong order + if (terms[0]?.operator !== "stream" && terms[0]?.operator !== "channel") { return null; } if (terms.length === 1) {