]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/process/process-accept.ts
Add auto follow back support for instances
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / process / process-accept.ts
index 86f7c764db163b93e7b6b3eca3fc0229c2faf2c5..dcfbb2c84a673ab1ca23c170fd6ed920b8608959 100644 (file)
@@ -24,7 +24,7 @@ async function processAccept (actor: MActorDefault, targetActor: MActorSignature
   if (!follow) throw new Error('Cannot find associated follow.')
 
   if (follow.state !== 'accepted') {
-    follow.set('state', 'accepted')
+    follow.state = 'accepted'
     await follow.save()
 
     await addFetchOutboxJob(targetActor)