)
}
- switchToDefaultAvatar ($event: Event) {
- ($event.target as HTMLImageElement).src = Account.GET_DEFAULT_AVATAR_URL()
- }
-
isCommentDisplayed () {
// Not deleted
return !this.comment.isDeleted ||
(this.commentTree?.hasDisplayedChildren) // Or this is a reply that have other replies
}
+ isChild () {
+ return this.parentComments.length !== 0
+ }
+
private getUserIfNeeded (account: Account) {
if (!account.userId) return
if (!this.authService.isLoggedIn()) return
// Before HTML rendering restore line feed for markdown list compatibility
const commentText = this.comment.text.replace(/<br.?\/?>/g, '\r\n')
const html = await this.markdownService.textMarkdownToHTML(commentText, true, true)
- this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html)
+ this.sanitizedCommentHTML = this.markdownService.processVideoTimestamps(html)
this.newParentComments = this.parentComments.concat([ this.comment ])
if (this.comment.account) {