]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/account/account.model.ts
Only use account name in routes
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / account / account.model.ts
index 6a3c6451c420fe0bee8690a4e04149b177987d5d..5058e372fd9505ecf99fe1d1c191417d99285b92 100644 (file)
@@ -4,11 +4,13 @@ import { Actor } from '../actor/actor.model'
 export class Account extends Actor implements ServerAccount {
   displayName: string
   description: string
+  nameWithHost: string
 
   constructor (hash: ServerAccount) {
     super(hash)
 
     this.displayName = hash.displayName
     this.description = hash.description
+    this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
   }
 }