Delete a "Block" event when recieved in INBOX

This commit is contained in:
Niko 2022-02-16 11:15:39 +01:00
parent 56f46070fe
commit 27ac14da3d
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,14 @@ module.exports = {
}
return true;
}
if (msg.activity.type === 'Undo')
{
if (msg.object.type === 'Block') {
await db.table.objects().deleteOne(
{ id: msg.object.id, type: 'Block' })
return true;
}
}
console.log('INBOX')
console.log(msg)