diff options
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.html | 2 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | 4 |
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' |