Add inbox/outbox notes

This commit is contained in:
Anthony Wang 2022-04-15 13:29:13 -05:00
parent c1b8463251
commit 3f77a36a2c
Signed by: a
GPG key ID: BC96B00AEC5F2D76

21
notes.md Normal file
View file

@ -0,0 +1,21 @@
implementing inboxes/outboxes and federated following
https://github.com/go-gitea/gitea/issues/14186 has an in-depth overview of what needs to happen for this
let's start with something basic and worry about unit tests and moderation later
inboxes:
POST request comes in
add to database
check which kind of request it is
use callbacks or something to run the proper handing function
if it's a follow request:
use the user_model create follow function
add an accept activity to the outbox
outboxes: (done, needs to be tested)
function to add to outbox
add to database
Check the to field (C2S) for which actor to forward this to (technically there are to, bto, cc, bcc, and audience but that's too much for now)
do a POST request with httpsigs using the activitypub.client stuff