subject -> topic: Fix local subject vars.

This commit is contained in:
Steve Howell 2018-11-13 15:41:18 +00:00 committed by Tim Abbott
parent 51f8ac91ec
commit 6546fb3f1d
2 changed files with 4 additions and 4 deletions

View File

@ -110,13 +110,13 @@ exports.add_topic_links = function (message) {
message.subject_links = [];
return;
}
var subject = message.subject;
var topic = message.subject;
var links = [];
_.each(realm_filter_list, function (realm_filter) {
var pattern = realm_filter[0];
var url = realm_filter[1];
var match;
while ((match = pattern.exec(subject)) !== null) {
while ((match = pattern.exec(topic)) !== null) {
var link_url = url;
var matched_groups = match.slice(1);
var i = 0;

View File

@ -102,10 +102,10 @@ function make_tab_data() {
// Third breadcrumb item for stream-topic naarrows
if (filter.has_operator("stream") &&
filter.has_operator("topic")) {
var subject = filter.operands("topic")[0];
var topic = filter.operands("topic")[0];
hashed = hash_util.operators_to_hash(ops.slice(0, 2));
tabs.push(make_tab(subject, hashed, null));
tabs.push(make_tab(topic, hashed, null));
}
}