ActivityPub-federated video streaming platform using P2P directly in your web browser
fix account URI in remote comment modal
Rigel Kent6d5973fa0ea5
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.htmlindex 086a1d84e6..30664f9785 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 @@<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()">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.tsindex 91af113d24..af47f3115b 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.accountAvatarUrlreturn window.location.origin + '/client/assets/images/default-avatar.png'