Allow unset topics in posts too.
This commit is contained in:
parent
af443f2acb
commit
6a058b690b
|
@ -159,6 +159,9 @@ var inputPostFormatter = function(post) {
|
|||
post.priority = utils.fromDecimal(post.priority);
|
||||
|
||||
// fallback
|
||||
if (post.topics == undefined) {
|
||||
post.topics = []
|
||||
}
|
||||
if (!utils.isArray(post.topics)) {
|
||||
post.topics = [post.topics];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue