diff --git a/api/src/activity/federation.js b/api/src/activity/federation.js index 7301a5e..6615872 100644 --- a/api/src/activity/federation.js +++ b/api/src/activity/federation.js @@ -53,6 +53,9 @@ module.exports = { const note = await db.getAPObject(msg.object.id, 'Note') if (note !== null) await db.table.objects().deleteOne({ _id: note._id }) + + if (typeof msg.object.id === 'string') + await db.table.quizs().deleteOne({ replyTo: msg.object.id }) return true } }