1
0
Fork 1
mirror of https://example.com synced 2024-11-22 11:56:38 +09:00

fix: unrenote should only delete renotes, not quotes

This commit is contained in:
Lhcfl 2024-01-01 21:28:28 +08:00 committed by naskya
parent f0d82ebb94
commit e8fc5ec37e
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -48,6 +48,9 @@ export default define(meta, paramDef, async (ps, user) => {
});
for (const note of renotes) {
deleteNote(await Users.findOneByOrFail({ id: user.id }), note);
// Only renotes should be deleted, not quotes
if (!note.text) {
deleteNote(await Users.findOneByOrFail({ id: user.id }), note);
}
}
});