2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

regression polls could not be closed properly

This commit is contained in:
Sam 2017-07-18 14:52:58 -04:00
parent 660d5e0a35
commit b7f58fe880
2 changed files with 6 additions and 3 deletions

View file

@ -113,7 +113,10 @@ const rule = {
// default poll attributes
const attributes = [["class", "poll"]];
attributes.push([DATA_PREFIX + "status", "open"]);
if (!attrs['status']) {
attributes.push([DATA_PREFIX + "status", "open"]);
}
WHITELISTED_ATTRIBUTES.forEach(name => {
if (attrs[name]) {