Fix avatars on video watch page

This commit is contained in:
Chocobozzz 2018-02-16 11:19:54 +01:00
parent 0b49571268
commit b6a4fd6b09
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,13 @@
# Changelog
## v0.0.25-alpha
### Bug fixes
* Fix avatars on video watch page
## v0.0.24-alpha
### Features

View File

@ -68,6 +68,7 @@ import { sendDeleteVideo } from '../../lib/activitypub/send'
import { AccountModel } from '../account/account'
import { AccountVideoRateModel } from '../account/account-video-rate'
import { ActorModel } from '../activitypub/actor'
import { AvatarModel } from '../avatar/avatar'
import { ServerModel } from '../server/server'
import { getSort, throwIfNotValid } from '../utils'
import { TagModel } from './tag'
@ -175,6 +176,10 @@ enum ScopeNames {
attributes: [ 'host' ],
model: () => ServerModel.unscoped(),
required: false
},
{
model: () => AvatarModel.unscoped(),
required: false
}
]
}