aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
index 91af113d2..af47f3115 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
@@ -127,6 +127,10 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
127 return this.form.value['text'] 127 return this.form.value['text']
128 } 128 }
129 129
130 getUrl () {
131 return window.location.href
132 }
133
130 getAvatarUrl () { 134 getAvatarUrl () {
131 if (this.user) return this.user.accountAvatarUrl 135 if (this.user) return this.user.accountAvatarUrl
132 return window.location.origin + '/client/assets/images/default-avatar.png' 136 return window.location.origin + '/client/assets/images/default-avatar.png'