mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add owner in video channel page
This commit is contained in:
@@ -34,11 +34,11 @@ enum ScopeNames {
|
||||
[ScopeNames.WITH_ACCOUNT]: {
|
||||
include: [
|
||||
{
|
||||
model: () => AccountModel,
|
||||
model: () => AccountModel.unscoped(),
|
||||
required: true,
|
||||
include: [
|
||||
{
|
||||
model: () => ActorModel,
|
||||
model: () => ActorModel.unscoped(),
|
||||
required: true
|
||||
}
|
||||
]
|
||||
@@ -247,12 +247,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> {
|
||||
videos: undefined
|
||||
}
|
||||
|
||||
if (this.Account) {
|
||||
videoChannel.ownerAccount = {
|
||||
id: this.Account.id,
|
||||
uuid: this.Account.Actor.uuid
|
||||
}
|
||||
}
|
||||
if (this.Account) videoChannel.ownerAccount = this.Account.toFormattedJSON()
|
||||
|
||||
return Object.assign(actor, videoChannel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user