This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -34,9 +34,9 @@ export const meta = {
noSuchPage: {
message: 'No such page.',
code: 'NO_SUCH_PAGE',
id: '222120c0-3ead-4528-811b-b96f233388d7'
}
}
id: '222120c0-3ead-4528-811b-b96f233388d7',
},
},
};
export default define(meta, async (ps, user) => {
@@ -47,12 +47,12 @@ export default define(meta, async (ps, user) => {
} else if (ps.name && ps.username) {
const author = await Users.findOne({
host: null,
usernameLower: ps.username.toLowerCase()
usernameLower: ps.username.toLowerCase(),
});
if (author) {
page = await Pages.findOne({
name: ps.name,
userId: author.id
userId: author.id,
});
}
}