From 6d5973fa0ea5f160f0cfbeecfeee0596bfac352c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 4 Oct 2018 14:13:08 +0200 Subject: fix account URI in remote comment modal --- .../app/videos/+video-watch/comment/video-comment-add.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts') 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 { return this.form.value['text'] } + getUrl () { + return window.location.href + } + getAvatarUrl () { if (this.user) return this.user.accountAvatarUrl return window.location.origin + '/client/assets/images/default-avatar.png' -- cgit v1.2.3