Fix #162: allow empty topic list in messages

This commit is contained in:
Péter Szilágyi 2015-04-16 18:05:08 +03:00
parent 271b00f069
commit af443f2acb
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ var outputPostFormatter = function(post){
}
// format the following options
if (post.topics == undefined) {
post.topics = []
}
post.topics = post.topics.map(function(topic){
return utils.toAscii(topic);
});