mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 05:13:39 +08:00
FIX: Allow poll feature to be disabled in discourse-markdown (#15025)
This commit is contained in:
parent
97b27a7426
commit
a9d5921901
|
@ -262,7 +262,9 @@ const rule = {
|
|||
|
||||
function newApiInit(helper) {
|
||||
helper.registerOptions((opts, siteSettings) => {
|
||||
opts.features.poll = !!siteSettings.poll_enabled;
|
||||
if (!siteSettings.poll_enabled) {
|
||||
opts.features.poll = false;
|
||||
}
|
||||
opts.pollMaximumOptions = siteSettings.poll_maximum_options;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user