diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-04 14:13:08 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-04 14:13:17 +0200 |
commit | 6d5973fa0ea5f160f0cfbeecfeee0596bfac352c (patch) | |
tree | 10e4d051901c4b4b0c92e5642acf5203ddd37805 /client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | |
parent | d0ae9490a3ffd0855a970fa3980c387db08a0f89 (diff) | |
download | PeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.tar.gz PeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.tar.zst PeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.zip |
fix account URI in remote comment modal
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.ts | 4 |
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' |