mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +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:
@@ -43,7 +43,7 @@ function format_user_stream_list_item(stream, user) {
|
||||
is_web_public: stream.is_web_public,
|
||||
show_unsubscribe_button,
|
||||
show_private_stream_unsub_tooltip,
|
||||
stream_edit_url: hash_util.stream_edit_uri(stream),
|
||||
stream_edit_url: hash_util.stream_edit_url(stream),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ export function register_click_handlers() {
|
||||
}
|
||||
|
||||
if (sub.invite_only && people.is_my_user_id(target_user_id)) {
|
||||
const new_hash = hash_util.stream_edit_uri(sub);
|
||||
const new_hash = hash_util.stream_edit_url(sub);
|
||||
hide_user_profile();
|
||||
browser_history.go_to_location(new_hash);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user