Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

之前版本的getCommentList()方法改成什么了 #739

Closed
chengzhongxue opened this issue Jan 8, 2024 · 2 comments · Fixed by #752
Closed

之前版本的getCommentList()方法改成什么了 #739

chengzhongxue opened this issue Jan 8, 2024 · 2 comments · Fixed by #752
Labels
question Further information is requested

Comments

@chengzhongxue
Copy link

是弃用了?,还是修改了,文档里面没有看到

@qwqcode
Copy link
Member

qwqcode commented Jan 8, 2024

不好意思,忘记在 CHANGELOG 里面写了

改成 ctx.get('list').getCommentNodes

ctx.get('list').getCommentNodes().forEach(comment => {
      const $content = comment.getRender().$content

参考 plugin-lightbox:https://github.com/ArtalkJS/Artalk/blob/master/ui/plugin-lightbox/main.ts#L18

@chengzhongxue
Copy link
Author

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants