WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

101

For example when you click load more comments, it is retrieving all pid and cid of comments first and make a dictionary of that data and display the required comments. So it means it means it is retrieving all comments pid and cid, even though it is not required in the frontend for displaying.

For example when you click load more comments, it is retrieving all pid and cid of comments first and make a dictionary of that data and display the required comments. So it means it means it is retrieving all comments pid and cid, even though it is not required in the frontend for displaying.

(post is archived)

[–] 0 pt

Your answer is in get_comment_tree() in /app/misc.py

[–] 0 pt

comments = SubPostComment.select(SubPostComment.cid, SubPostComment.parentcid).where(SubPostComment.pid == post['pid']).order_by(SubPostComment.score.desc()).dicts()

Here it is retrieving all comments cid, parentcid and it is passed as arguments parameter in get_comment_tree()