mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Begin moving video channel to actor
This commit is contained in:
parent
fadf619ad6
commit
50d6de9c28
100 changed files with 1761 additions and 2041 deletions
|
@ -1,14 +1,14 @@
|
|||
import { getServerAccount } from '../server/helpers'
|
||||
import { getServerActor } from '../server/helpers'
|
||||
import { initDatabaseModels } from '../server/initializers'
|
||||
import { AccountFollowModel } from '../server/models/account/account-follow'
|
||||
import { ActorFollowModel } from '../server/models/activitypub/actor-follow'
|
||||
import { VideoModel } from '../server/models/video/video'
|
||||
|
||||
initDatabaseModels(true)
|
||||
.then(() => {
|
||||
return getServerAccount()
|
||||
return getServerActor()
|
||||
})
|
||||
.then(serverAccount => {
|
||||
return AccountFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined)
|
||||
return ActorFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined)
|
||||
})
|
||||
.then(res => {
|
||||
return res.total > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue