aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/account/actor.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-09 11:58:46 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-10 14:02:41 +0200
commit8ca56654a176ee8f350d31282c6cac4a59f58499 (patch)
tree6e52ed0d8410abfceb62bcb6230b8ed50bd6c574 /client/src/app/shared/shared-main/account/actor.model.ts
parent310b5219b38427f0c2c7ba57225afdd8f3064380 (diff)
downloadPeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.gz
PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.zst
PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.zip
Add ability to report comments in front end
Diffstat (limited to 'client/src/app/shared/shared-main/account/actor.model.ts')
-rw-r--r--client/src/app/shared/shared-main/account/actor.model.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/account/actor.model.ts b/client/src/app/shared/shared-main/account/actor.model.ts
index 0fa161ce6..9ec6dbab1 100644
--- a/client/src/app/shared/shared-main/account/actor.model.ts
+++ b/client/src/app/shared/shared-main/account/actor.model.ts
@@ -46,8 +46,10 @@ export abstract class Actor implements ActorServer {
46 this.host = hash.host 46 this.host = hash.host
47 this.followingCount = hash.followingCount 47 this.followingCount = hash.followingCount
48 this.followersCount = hash.followersCount 48 this.followersCount = hash.followersCount
49 this.createdAt = new Date(hash.createdAt.toString()) 49
50 this.updatedAt = new Date(hash.updatedAt.toString()) 50 if (hash.createdAt) this.createdAt = new Date(hash.createdAt.toString())
51 if (hash.updatedAt) this.updatedAt = new Date(hash.updatedAt.toString())
52
51 this.avatar = hash.avatar 53 this.avatar = hash.avatar
52 54
53 this.updateComputedAttributes() 55 this.updateComputedAttributes()