mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
refactor: Rename set_realm_filters().
This name was misleading, because we weren't actually setting realm_filters (that's what `page_params.realm_filters = realm_filters` is for); we were instead updating our realm filter rules.
This commit is contained in:
@@ -357,7 +357,7 @@ function python_to_js_filter(pattern, url) {
|
||||
return [final_regex, url];
|
||||
}
|
||||
|
||||
exports.set_realm_filters = function (realm_filters) {
|
||||
exports.update_realm_filter_rules = function (realm_filters) {
|
||||
// Update the marked parser with our particular set of realm filters
|
||||
realm_filter_map.clear();
|
||||
realm_filter_list = [];
|
||||
@@ -446,7 +446,7 @@ exports.initialize = function () {
|
||||
// Disable autolink as (a) it is not used in our backend and (b) it interferes with @mentions
|
||||
disable_markdown_regex(marked.InlineLexer.rules.zulip, 'autolink');
|
||||
|
||||
exports.set_realm_filters(page_params.realm_filters);
|
||||
exports.update_realm_filter_rules(page_params.realm_filters);
|
||||
|
||||
// Tell our fenced code preprocessor how to insert arbitrary
|
||||
// HTML into the output. This generated HTML is safe to not escape
|
||||
|
||||
Reference in New Issue
Block a user