}
// convert tags to tags_string
if (item.tags) {
- var tagnames = item.tags.map(tag => tag.tagname);
+ var tagnames = item.tags
+ .filter(tag => (tag.private == "no"
+ && tag.tagname != "submission"
+ && tag.tagname != "journal"
+ ))
+ .map(tag => tag.tagname);
this.editor.tags_string = tagnames.join(" ");
this.updateTopics();
}
// TODO: related stories
// convert public to display
- this.editor.display = (item.public == "yes");
+ this.editor.display = (item.public == "no") ? 0 : 1;
if (item.create_time) {
this.editor.createtime = newslash.util.formatToLocalISOString(newslash.util.decodeMySQLDateTime(item.create_time));
} else {