Skip to content

Commit

Permalink
feat: account for new board option disable self mod in board create r…
Browse files Browse the repository at this point in the history
…oute
  • Loading branch information
akinsey committed Jun 26, 2020
1 parent 151e31c commit adb21b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/ept-boards/routes/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {
right_to_left: Joi.boolean().default(false),
disable_post_edit: Joi.number().min(0).max(99999),
disable_signature: Joi.boolean().default(false)
disable_selfmod: Joi.boolean().default(false)
})).min(1)
},
pre: [
Expand All @@ -61,9 +62,11 @@ module.exports = {
board.meta = {
disable_post_edit: board.disable_post_edit,
disable_signature: board.disable_signature
disable_selfmod: board.disable_selfmod
};
delete board.disable_post_edit;
delete board.disable_signature;
delete board.disable_selfmod;
return board;
});
var promise = Promise.map(boards, function(board) {
Expand Down

0 comments on commit adb21b3

Please sign in to comment.