import { ActorModel } from '../activitypub/actor'
import { ActorFollowModel } from '../activitypub/actor-follow'
import { ApplicationModel } from '../application/application'
-import { AvatarModel } from '../avatar/avatar'
import { PluginModel } from '../server/plugin'
import { ServerModel } from '../server/server'
import { getSort, throwIfNotValid } from '../utils'
import { VideoCommentModel } from '../video/video-comment'
import { VideoImportModel } from '../video/video-import'
import { AccountModel } from './account'
+import { ActorImageModel } from './actor-image'
import { UserModel } from './user'
enum ScopeNames {
include: [
{
attributes: [ 'filename' ],
- model: AvatarModel.unscoped(),
+ as: 'Avatar',
+ model: ActorImageModel.unscoped(),
required: false
},
{
},
{
attributes: [ 'filename' ],
- model: AvatarModel.unscoped(),
+ as: 'Avatar',
+ model: ActorImageModel.unscoped(),
required: false
},
{