Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

How to get all parent comment from a thread #341

Open
tnm0113 opened this issue Aug 20, 2021 · 0 comments
Open

How to get all parent comment from a thread #341

tnm0113 opened this issue Aug 20, 2021 · 0 comments

Comments

@tnm0113
Copy link

tnm0113 commented Aug 20, 2021

Hi all,
I have a thread like that:
Submission
|--Comment 1
---|--Comment 2
------|--Comment 3
If i have id of comment 3, how can i get the above ones. I know i can get parent recursively but i can't find property to distinguish between comment and submission. And do we have better way to do that ?
Tks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant