aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-10-04 14:13:08 +0200
committerRigel Kent <sendmemail@rigelk.eu>2018-10-04 14:13:17 +0200
commit6d5973fa0ea5f160f0cfbeecfeee0596bfac352c (patch)
tree10e4d051901c4b4b0c92e5642acf5203ddd37805 /client/src/app/videos
parentd0ae9490a3ffd0855a970fa3980c387db08a0f89 (diff)
downloadPeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.tar.gz
PeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.tar.zst
PeerTube-6d5973fa0ea5f160f0cfbeecfeee0596bfac352c.zip
fix account URI in remote comment modal
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.html2
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
index 086a1d84e..30664f978 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
@@ -41,7 +41,7 @@
41 <span i18n> 41 <span i18n>
42 If you have an account on Mastodon or Pleroma, you can open it directly in their interface: 42 If you have an account on Mastodon or Pleroma, you can open it directly in their interface:
43 </span> 43 </span>
44 <my-remote-subscribe [interact]="true" account="{{ uri }}"></my-remote-subscribe> 44 <my-remote-subscribe [interact]="true" account="{{ getUrl() }}"></my-remote-subscribe>
45 </div> 45 </div>
46 <div class="modal-footer inputs"> 46 <div class="modal-footer inputs">
47 <span i18n class="action-button action-button-cancel" role="button" (click)="hideVisitorModal()"> 47 <span i18n class="action-button action-button-cancel" role="button" (click)="hideVisitorModal()">
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'