X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fupdate-host.ts;h=3fb5f1972dd85b6491fed4d9979533743dbeefe7;hb=7859b5800c08c15f3380fb3a7e267ce1b3f2df9f;hp=eccf203eae561f87f8a201d92fa715c110781ce6;hpb=91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/update-host.ts b/scripts/update-host.ts index eccf203ea..3fb5f1972 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts @@ -1,14 +1,14 @@ -import { getServerAccount } from '../server/helpers' +import { getServerActor } from '../server/helpers/utils' 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