mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
util: Replace util.get_message_topic().
Replace `util.get_message_topic(message)` with `message.topic`. Fixes #13931
This commit is contained in:
committed by
showell
parent
9d598d95a6
commit
efda2684ea
@@ -1,5 +1,3 @@
|
||||
const util = require("./util");
|
||||
|
||||
exports.get_hash_category = function (hash) {
|
||||
// given "#streams/subscribed", returns "streams"
|
||||
return hash ? hash.replace(/^#/, "").split(/\//)[0] : "";
|
||||
@@ -138,7 +136,7 @@ exports.by_conversation_and_time_uri = function (message) {
|
||||
|
||||
if (message.type === "stream") {
|
||||
return absolute_url +
|
||||
exports.by_stream_topic_uri(message.stream_id, util.get_message_topic(message)) +
|
||||
exports.by_stream_topic_uri(message.stream_id, message.topic) +
|
||||
suffix;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user