Permalink
Browse files

fix account URI in remote comment modal

  • Loading branch information...
rigelk committed Oct 4, 2018
1 parent d0ae949 commit 6d5973fa0ea5f160f0cfbeecfeee0596bfac352c
@@ -41,7 +41,7 @@ <h4 class="modal-title" id="modal-basic-title" i18n>You are one step away from c
<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>

This comment has been minimized.

@Chocobozzz

Chocobozzz Oct 4, 2018

Owner

You don't need the uri variable anymore in the ts

<my-remote-subscribe [interact]="true" account="{{ getUrl() }}"></my-remote-subscribe>

This comment has been minimized.

@Chocobozzz

Chocobozzz Oct 4, 2018

Owner

[account]="getUrl()"

</div>
<div class="modal-footer inputs">
<span i18n class="action-button action-button-cancel" role="button" (click)="hideVisitorModal()">
@@ -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'

0 comments on commit 6d5973f

Please sign in to comment.