diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-14 17:38:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | 50d6de9c286abcb34ff4234d56d9cbb803db7665 (patch) | |
tree | f1732b27edcd05c7877a8358b8312f1e38c287ed /scripts | |
parent | fadf619ad61a016c1c7fc53de5a8f398a4f77519 (diff) | |
download | PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.gz PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.tar.zst PeerTube-50d6de9c286abcb34ff4234d56d9cbb803db7665.zip |
Begin moving video channel to actor
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-host.ts | 8 |
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 @@ | |||
1 | import { getServerAccount } from '../server/helpers' | 1 | import { getServerActor } from '../server/helpers' |
2 | import { initDatabaseModels } from '../server/initializers' | 2 | import { initDatabaseModels } from '../server/initializers' |
3 | import { AccountFollowModel } from '../server/models/account/account-follow' | 3 | import { ActorFollowModel } from '../server/models/activitypub/actor-follow' |
4 | import { VideoModel } from '../server/models/video/video' | 4 | import { VideoModel } from '../server/models/video/video' |
5 | 5 | ||
6 | initDatabaseModels(true) | 6 | initDatabaseModels(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 |