diff --git a/src/renderer/helpers/api/piped.js b/src/renderer/helpers/api/piped.js index bbe99a7b3..3b32cd3bc 100644 --- a/src/renderer/helpers/api/piped.js +++ b/src/renderer/helpers/api/piped.js @@ -58,10 +58,12 @@ export async function getPipedCommentsMore({ videoId, continuation }) { } function parsePipedComments(comments) { return comments.map(comment => { + const authorId = comment.commentorUrl.replace('/channel/', '') return { dataType: 'piped', author: comment.author, - authorLink: comment.commentorUrl.replace('/channel/'), + authorId: authorId, + authorLink: authorId, authorThumb: comment.thumbnail, commentId: comment.commentId, text: comment.commentText, @@ -72,7 +74,7 @@ function parsePipedComments(comments) { isHearted: comment.hearted, replyToken: comment.repliesPage, isMember: false, - isOwner: false, + isOwner: comment.channelOwner, showReplies: false, replies: [], hasOwnerReplied: comment.creatorReplied,