aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
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