mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Update follower/following counts
This commit is contained in:
parent
6502c3d43e
commit
32b2b43c06
8 changed files with 108 additions and 1 deletions
|
@ -51,6 +51,9 @@ async function follow (actor: ActorModel, targetActorURL: string) {
|
|||
transaction: t
|
||||
})
|
||||
|
||||
actorFollow.ActorFollower = actor
|
||||
actorFollow.ActorFollowing = targetActor
|
||||
|
||||
if (actorFollow.state !== 'accepted') {
|
||||
actorFollow.state = 'accepted'
|
||||
await actorFollow.save({ transaction: t })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue