mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Federate video views
This commit is contained in:
parent
c46edbc2f6
commit
40ff57078e
19 changed files with 188 additions and 44 deletions
|
@ -49,6 +49,12 @@ async function follow (account: AccountInstance, targetAccountURL: string) {
|
|||
},
|
||||
transaction: t
|
||||
})
|
||||
|
||||
if (accountFollow.state !== 'accepted') {
|
||||
accountFollow.state = 'accepted'
|
||||
await accountFollow.save({ transaction: t })
|
||||
}
|
||||
|
||||
accountFollow.AccountFollower = account
|
||||
accountFollow.AccountFollowing = targetAccount
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue