don't remove mod notes

scrub-username
Thibault Duplessis 2021-04-13 10:51:18 +02:00
parent 84602904cc
commit 7fec7ef86d
1 changed files with 4 additions and 3 deletions

View File

@ -101,9 +101,10 @@ const msgThreadIds = scrub('msg_thread')(c => {
scrub('msg_msg')(c => msgThreadIds.length && c.remove({ tid: { $in: msgThreadIds } }));
*/
deleteAll('note', 'from');
scrub('note')(c => c.remove({ to: userId, mod: false }));
scrub('note')(c => {
c.remove({ from: userId, mod: false });
c.remove({ to: userId, mod: false });
});
deleteAll('notify', 'notifies');