aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-14 17:38:41 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 10:53:16 +0100
commit50d6de9c286abcb34ff4234d56d9cbb803db7665 (patch)
treef1732b27edcd05c7877a8358b8312f1e38c287ed /scripts
parentfadf619ad61a016c1c7fc53de5a8f398a4f77519 (diff)
downloadPeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.gz
PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.zst
PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.zip
Begin moving video channel to actor
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-host.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index eccf203ea..4551a4702 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -1,14 +1,14 @@
1import { getServerAccount } from '../server/helpers' 1import { getServerActor } from '../server/helpers'
2import { initDatabaseModels } from '../server/initializers' 2import { initDatabaseModels } from '../server/initializers'
3import { AccountFollowModel } from '../server/models/account/account-follow' 3import { ActorFollowModel } from '../server/models/activitypub/actor-follow'
4import { VideoModel } from '../server/models/video/video' 4import { VideoModel } from '../server/models/video/video'
5 5
6initDatabaseModels(true) 6initDatabaseModels(true)
7 .then(() => { 7 .then(() => {
8 return getServerAccount() 8 return getServerActor()
9 }) 9 })
10 .then(serverAccount => { 10 .then(serverAccount => {
11 return AccountFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined) 11 return ActorFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined)
12 }) 12 })
13 .then(res => { 13 .then(res => {
14 return res.total > 0 14 return res.total > 0