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

@ -17,22 +17,22 @@ export const meta = {
limit: {
duration: ms('1hour'),
max: 300,
minInterval: ms('1sec')
minInterval: ms('1sec'),
},
params: {
noteId: {
validator: $.type(ID),
}
},
},
errors: {
noSuchNote: {
message: 'No such note.',
code: 'NO_SUCH_NOTE',
id: 'efd4a259-2442-496b-8dd7-b255aa1a160f'
id: 'efd4a259-2442-496b-8dd7-b255aa1a160f',
},
}
},
};
export default define(meta, async (ps, user) => {
@ -43,7 +43,7 @@ export default define(meta, async (ps, user) => {
const renotes = await Notes.find({
userId: user.id,
renoteId: note.id
renoteId: note.id,
});
for (const note of renotes) {