pretty new to AP in general, and currently trying to understand how to implement inbox and outbox to an application… here is my thought with some codes for illustration:
Inbox and outbox work as API endpoints. At a minimum, you need to store these URLs for remote accounts. For local accounts, I recommend storing inbox and outbox contents (all incoming and outgoing activities).
thx, @silverpill
so i think i understand the part for storing inbox outbox urls for remote accounts. For local accounts, however, im still quite confused about.
because i imagine, a local user will have inbox and outbox full of contents.
let me use mastodon as an example. its inbox and outbox will be full of “toots”.
The part where I still don’t understand enough is what happen when remote user Alice who is following my local user Bob.
When Alice wants to see if Bob has got any new toots recently. Alice performs a request to see what is Bob’s outbox look like.
When my server receive this request, do I simply return all the toots Bob has published since Bob’s account creation?
My next big confusion is about Bob’s inbox, since Bob’s inbox is full of contents he subscribed to. How do I even store those contents?