X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fvideos%2Fshared%2Fvideo-details.model.ts;h=64cb4f847fb528c8efaa1451537eced15cebc2df;hb=608624252466acf9f1d9ee1c1170bd4fe4d18d18;hp=84f96a25ffe6fa1e04cfc9f431b3e7523a22f0ae;hpb=fd45e8f43c2638478599ca75632518054461da85;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/shared/video-details.model.ts b/client/src/app/videos/shared/video-details.model.ts index 84f96a25f..64cb4f847 100644 --- a/client/src/app/videos/shared/video-details.model.ts +++ b/client/src/app/videos/shared/video-details.model.ts @@ -10,7 +10,7 @@ import { } from '../../../../../shared' export class VideoDetails extends Video implements VideoDetailsServerModel { - author: string + account: string by: string createdAt: Date updatedAt: Date @@ -27,7 +27,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { uuid: string isLocal: boolean name: string - podHost: string + serverHost: string tags: string[] thumbnailPath: string thumbnailUrl: string @@ -71,7 +71,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { } isRemovableBy (user: AuthUser) { - return user && this.isLocal === true && (this.author === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) + return user && this.isLocal === true && (this.account === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) } isBlackistableBy (user: AuthUser) { @@ -79,6 +79,6 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { } isUpdatableBy (user: AuthUser) { - return user && this.isLocal === true && user.username === this.author + return user && this.isLocal === true && user.username === this.account } }