-import { getServerAccount } from '../server/helpers'
-import { initDatabase } from '../server/initializers'
-import { AccountFollowModel } from '../server/models/account/account-follow'
+import { getServerActor } from '../server/helpers/utils'
+import { initDatabaseModels } from '../server/initializers'
+import { ActorFollowModel } from '../server/models/activitypub/actor-follow'
import { VideoModel } from '../server/models/video/video'
-initDatabase(true)
+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