mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
starred premoderation
This commit is contained in:
parent
d2beab0976
commit
fd7404e565
5 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue