Skip to content
Snippets Groups Projects

fix: comment reply name

Merged Daniel Schmidt requested to merge instantnoodl/fix-comment-reply-name into master
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -496,6 +496,7 @@ function CommentTipTapExtension(
if (!command.id || !command.userID || !command.username) {
return;
}
console.log(command);
this.editor.chain().addReply(command.userID, command.username, command.id).run();
break;
case 'Highlight':
@@ -699,8 +700,8 @@ function CommentTipTapExtension(
if (path.length === 0) {
root.replies.push({
id: generateReplyID(root),
userID: userID,
username: username,
userID: internalState.userID ?? '',
username: internalState.username ?? '',
content: '',
createdAt: new Date(),
replies: [],
Loading