I’m trying to figure out how to get the comments of a post given a link to it using ActivityPub.

Based on reading the ActivityPub spec, I thought comments were federated via the replies key of the ActivityPub Object.

This works for Mastodon posts, but not for Lemmy (nor Pleroma). As an example

curl -H "Accept: application/activity+json" https://lemmy.my.id/post/79514 | jq

doesn’t contain a replies key. Yet the comments are federated to Mastodon somehow.

What is going on? How can I get the comment?

  • @quest@lemmy.worldOP
    link
    fedilink
    11 year ago

    I understand exactly what you’re saying; you can get the parents but not the replies in that situation.

    I’m just saying that in your situation (e.g. someone I follow on Mastodon likes a Lemmy post) it would be convenient for me as a user to be able to view the replies to that Lemmy post, but I cannot necessarily do that because Lemmy does not include replies.

    • r00ty
      link
      fedilink
      01 year ago

      I expect it does, from the lemmy API. But from the ActivityPub api, it doesn’t make sense to.