// Speed up things and resolve directly the thread
if (commentFromDatabase.InReplyToVideoComment) {
const data = await VideoCommentModel.listThreadParentComments(commentFromDatabase, undefined, 'DESC')
- console.log(data)
parentComments = parentComments.concat(data)
}
return { video, parents: comments }
} catch (err) {
- logger.debug('Cannot get or create account and video and channel for reply %s, fetch comment', url, err)
+ logger.debug('Cannot get or create account and video and channel for reply %s, fetch comment', url, { err })
if (comments.length > ACTIVITY_PUB.MAX_RECURSION_COMMENTS) {
throw new Error('Recursion limit reached when resolving a thread')