Comment on What are the activity_id formats for various platforms?

<- View Parent
admiralpatrick@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

Cool, thanks. I was close with /user guessing from memory.

I think the /users/…/post_id will be sufficient. It just needs to know that the given URL is an AP_ID before passing it off to the API call to resolveObject. Since it already knows instance.domain.tld is a federated instance, it just needs to see if the path is an AP_ID or the HTML (or something else). Thus, I don’t have to parse the whole thing, just check that enough of it matches.

Thanks!

source
Sort:hotnewtop