Support AP post deletion event
This commit is contained in:
parent
e5d4c66f77
commit
4bb004f675
|
@ -37,6 +37,15 @@ module.exports = {
|
|||
return true
|
||||
}
|
||||
}
|
||||
if (msg.activity.type === 'Delete')
|
||||
{
|
||||
if (msg.object.type === 'Note') {
|
||||
const note = await db.getAPObject(msg.object.id, 'Note')
|
||||
if (note !== null)
|
||||
await db.table.objects().deleteOne({ _id: note._id })
|
||||
return true
|
||||
}
|
||||
}
|
||||
if (msg.activity.type === 'Reject')
|
||||
{
|
||||
if (msg.object.type === 'Follow') {
|
||||
|
|
Loading…
Reference in New Issue