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:
parent
f0d82ebb94
commit
e8fc5ec37e
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue