Adds parent_id param to comment_create
to allow replies
This commit is contained in:
parent
2844087334
commit
c171a38067
1 changed files with 4 additions and 3 deletions
|
@ -55,9 +55,10 @@ export function doCommentCreate(
|
||||||
myChannels && myChannels.find(myChannel => myChannel.name === channel);
|
myChannels && myChannels.find(myChannel => myChannel.name === channel);
|
||||||
const channel_id = namedChannelClaim ? namedChannelClaim.claim_id : null;
|
const channel_id = namedChannelClaim ? namedChannelClaim.claim_id : null;
|
||||||
return Lbry.comment_create({
|
return Lbry.comment_create({
|
||||||
comment,
|
comment: comment,
|
||||||
claim_id,
|
claim_id: claim_id,
|
||||||
channel_id,
|
channel_id: channel_id,
|
||||||
|
parent_id: parent_id,
|
||||||
})
|
})
|
||||||
.then((result: Comment) => {
|
.then((result: Comment) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
Loading…
Add table
Reference in a new issue