
1·
4 months agoOddly, the endpoint on lemm.el and lemmy.ml return comments:
> curl 'https://lemm.ee/api/v3/comment/list?post_id=45734814' | jq '.comments.[] | .comment.content[:50]'
"Yeah, you're right. I didn't read enough of the do"
"Thank you for the tip ... but whatever I try with "
"~~In 0.19.5, they removed the deprecated `post_id`"
> curl 'https://lemmy.ml/api/v3/comment/list?post_id=21766749' | jq '.comments.[] | .comment.content[:50]'
"Yeah, you're right. I didn't read enough of the do"
"Thank you for the tip ... but whatever I try with "
"~~In 0.19.5, they removed the deprecated `post_id`"
I think it would be better to ask the admin of the instance before creating the issue.
I believe that detection works for posts in the same community too. I posted two same links in a community and both was detected as cross-posted:
You can get the cross posts via API resposne. See
cross_posts
field in the response ofhttps://<instance>/api/v3/post?id=<ID>
.