await sendDeleteVideoComment(videoCommentInstance, t)
}
- markCommentAsDeleted(videoCommentInstance)
+ videoCommentInstance.markAsDeleted()
- await videoCommentInstance.save()
+ await videoCommentInstance.save({ transaction: t })
})
logger.info('Video comment %d deleted.', videoCommentInstance.id)
return thread
}
-function markCommentAsDeleted (comment: MComment): void {
- comment.text = ''
- comment.deletedAt = new Date()
- comment.accountId = null
-}
-
// ---------------------------------------------------------------------------
export {
removeComment,
createVideoComment,
- buildFormattedCommentTree,
- markCommentAsDeleted
+ buildFormattedCommentTree
}