]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
fix account URI in remote comment modal
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment-add.component.ts
index 91af113d243a30d0bea9fb53b20bca2411efa173..af47f3115b0e4f0d2ec21fab8a3d691d1c40b4a5 100644 (file)
@@ -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'