mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
hash_util: Rename _uri functions to _url.
It's 2022 and the WHATWG no longer recognizes the term URI. Everything is now a URL or a type of URL. Which is great because it's way less confusing. Details here: https://url.spec.whatwg.org/
This commit is contained in:
@@ -39,11 +39,11 @@ export function encode_stream_id(stream_id, maybe_get_stream_name) {
|
||||
return encodeHashComponent(slug);
|
||||
}
|
||||
|
||||
export function by_stream_uri(stream_id, maybe_get_stream_name) {
|
||||
export function by_stream_url(stream_id, maybe_get_stream_name) {
|
||||
return "#narrow/stream/" + encode_stream_id(stream_id, maybe_get_stream_name);
|
||||
}
|
||||
|
||||
export function by_stream_topic_uri(stream_id, topic, maybe_get_stream_name) {
|
||||
export function by_stream_topic_url(stream_id, topic, maybe_get_stream_name) {
|
||||
return (
|
||||
"#narrow/stream/" +
|
||||
encode_stream_id(stream_id, maybe_get_stream_name) +
|
||||
|
||||
Reference in New Issue
Block a user