starred premoderation

This commit is contained in:
muerwre 2019-03-21 18:27:12 +07:00
parent d2beab0976
commit fd7404e565
5 changed files with 8 additions and 8 deletions

View file

@ -23,17 +23,16 @@ module.exports = async (req, res) => {
};
}
console.log('is starred?', starred);
if (is_starred) {
criteria = {
...criteria,
is_starred: true,
is_public: true,
};
}
if (!author || !user || (user._id !== author)) {
} else if (!author || !user || (user._id !== author)) {
criteria = {
...criteria,
is_starred: false,
is_public: true,
};
}