diff --git a/api/src/activity/federation.js b/api/src/activity/federation.js index c7a07b8..e94596c 100644 --- a/api/src/activity/federation.js +++ b/api/src/activity/federation.js @@ -39,8 +39,10 @@ module.exports = { if (msg.object.type === 'Follow') { const follow = await db.getAPObject(msg.object.id, 'Follow') if (follow !== null) - await db.table.objects().updateOne({ _id: follow._id }, - { $set: { rejected: true } }) + await db.table.objects().updateOne({ _id: follow._id }, { + $set: { rejected: true }, + $unset: { accepted: 1 }, + }) return true } }