This commit is contained in:
syuilo 2022-01-03 02:12:50 +09:00
parent 408142647c
commit 4a64280a7c
306 changed files with 306 additions and 0 deletions

View file

@ -33,6 +33,7 @@ export const meta = {
},
};
// eslint-disable-next-line import/no-default-export
export default define(meta, async (ps, user) => {
await removePinned(user, ps.noteId).catch(e => {
if (e.id === 'b302d4cf-c050-400a-bbb3-be208681f40c') throw new ApiError(meta.errors.noSuchNote);