diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-07 10:56:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-07 10:57:33 +0200 |
commit | 3ddb1ec5553167b0b1cb852e906a691ea65522a4 (patch) | |
tree | 87d0b2aea74f3a3025722b78eda3a3e1541d4492 /client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | |
parent | 88ebb4331092c04f09c453fddafffc80ba0dd7e0 (diff) | |
download | PeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.tar.gz PeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.tar.zst PeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.zip |
Try to fix remote mastodon interactions
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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 fd85c28f2..ac1d02d94 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 | |||
@@ -8,7 +8,6 @@ import { User } from '../../../shared/users' | |||
8 | import { Video } from '../../../shared/video/video.model' | 8 | import { Video } from '../../../shared/video/video.model' |
9 | import { VideoComment } from './video-comment.model' | 9 | import { VideoComment } from './video-comment.model' |
10 | import { VideoCommentService } from './video-comment.service' | 10 | import { VideoCommentService } from './video-comment.service' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
12 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 11 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
13 | import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' | 12 | import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' |
14 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 13 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
@@ -40,8 +39,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
40 | private videoCommentService: VideoCommentService, | 39 | private videoCommentService: VideoCommentService, |
41 | private authService: AuthService, | 40 | private authService: AuthService, |
42 | private modalService: NgbModal, | 41 | private modalService: NgbModal, |
43 | private router: Router, | 42 | private router: Router |
44 | private i18n: I18n | ||
45 | ) { | 43 | ) { |
46 | super() | 44 | super() |
47 | } | 45 | } |
@@ -124,7 +122,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
124 | return this.form.value['text'] | 122 | return this.form.value['text'] |
125 | } | 123 | } |
126 | 124 | ||
127 | getUrl () { | 125 | getUri () { |
128 | return window.location.href | 126 | return window.location.href |
129 | } | 127 | } |
130 | 128 | ||