mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: site setting enable_mentions to turn on/off mentions
This commit is contained in:
committed by
Robin Ward
parent
3e4f02a180
commit
fd99e1ef56
@@ -38,6 +38,10 @@ function addMention(buffer, matches, state) {
|
||||
}
|
||||
|
||||
export function setup(helper) {
|
||||
helper.registerOptions((opts, siteSettings) => {
|
||||
opts.features.mentions = !!siteSettings.enable_mentions;
|
||||
});
|
||||
|
||||
helper.registerPlugin(md => {
|
||||
|
||||
const rule = {
|
||||
|
||||
Reference in New Issue
Block a user