1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add auto follow back support for instances

This commit is contained in:
Chocobozzz 2019-08-30 16:50:12 +02:00 committed by Chocobozzz
parent f69ec5f340
commit 8424c4026a
44 changed files with 652 additions and 157 deletions

View 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)