]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
fix account URI in remote comment modal
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 4 Oct 2018 12:13:08 +0000 (14:13 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 4 Oct 2018 12:13:17 +0000 (14:13 +0200)
client/src/app/videos/+video-watch/comment/video-comment-add.component.html
client/src/app/videos/+video-watch/comment/video-comment-add.component.ts

index 086a1d84e68e46ed18697f636f407b8bf43412e3..30664f97859940e6e5e50d160f8bef8de7ca1b74 100644 (file)
@@ -41,7 +41,7 @@
     <span i18n>
       If you have an account on Mastodon or Pleroma, you can open it directly in their interface:
     </span>
-    <my-remote-subscribe [interact]="true" account="{{ uri }}"></my-remote-subscribe>
+    <my-remote-subscribe [interact]="true" account="{{ getUrl() }}"></my-remote-subscribe>
   </div>
   <div class="modal-footer inputs">
     <span i18n class="action-button action-button-cancel" role="button" (click)="hideVisitorModal()">
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'