mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add ability for users to block an account/instance on server side
This commit is contained in:
parent
dffd5d127f
commit
7ad9b9846c
33 changed files with 1344 additions and 56 deletions
|
@ -64,10 +64,8 @@ function buildFormattedCommentTree (resultList: ResultList<VideoCommentModel>):
|
|||
}
|
||||
|
||||
const parentCommentThread = idx[childComment.inReplyToCommentId]
|
||||
if (!parentCommentThread) {
|
||||
const msg = `Cannot format video thread tree, parent ${childComment.inReplyToCommentId} not found for child ${childComment.id}`
|
||||
throw new Error(msg)
|
||||
}
|
||||
// Maybe the parent comment was blocked by the admin/user
|
||||
if (!parentCommentThread) continue
|
||||
|
||||
parentCommentThread.children.push(childCommentThread)
|
||||
idx[childComment.id] = childCommentThread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue