aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts4
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment.component.ts4
2 files changed, 4 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 4bde5c53d..f1f0dfeba 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
@@ -4,7 +4,7 @@ import { Router } from '@angular/router'
4import { Notifier, User } from '@app/core' 4import { Notifier, User } from '@app/core'
5import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' 5import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators'
6import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' 6import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
7import { Video } from '@app/shared/shared-main' 7import { Video, Account } from '@app/shared/shared-main'
8import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' 8import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment'
9import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 9import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
10import { VideoCommentCreate } from '@shared/models' 10import { VideoCommentCreate } from '@shared/models'
@@ -145,7 +145,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
145 145
146 getAvatarUrl () { 146 getAvatarUrl () {
147 if (this.user) return this.user.accountAvatarUrl 147 if (this.user) return this.user.accountAvatarUrl
148 return window.location.origin + '/client/assets/images/default-avatar.png' 148 return Account.GET_DEFAULT_AVATAR_URL()
149 } 149 }
150 150
151 gotoLogin () { 151 gotoLogin () {
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
index 3b3a5cc81..0958b25c0 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
@@ -2,7 +2,7 @@
2import { Component, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core' 2import { Component, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core'
3import { MarkdownService, Notifier, UserService } from '@app/core' 3import { MarkdownService, Notifier, UserService } from '@app/core'
4import { AuthService } from '@app/core/auth' 4import { AuthService } from '@app/core/auth'
5import { Account, Actor, DropdownAction, Video } from '@app/shared/shared-main' 5import { Account, DropdownAction, Video } from '@app/shared/shared-main'
6import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component' 6import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component'
7import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment' 7import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment'
8import { User, UserRight } from '@shared/models' 8import { User, UserRight } from '@shared/models'
@@ -130,7 +130,7 @@ export class VideoCommentComponent implements OnInit, OnChanges {
130 } 130 }
131 131
132 switchToDefaultAvatar ($event: Event) { 132 switchToDefaultAvatar ($event: Event) {
133 ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() 133 ($event.target as HTMLImageElement).src = Account.GET_DEFAULT_AVATAR_URL()
134 } 134 }
135 135
136 isNotDeletedOrDeletedWithReplies () { 136 isNotDeletedOrDeletedWithReplies () {