Add inbox/outbox notes
This commit is contained in:
parent
c1b8463251
commit
3f77a36a2c
1 changed files with 21 additions and 0 deletions
21
notes.md
Normal file
21
notes.md
Normal 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
|
Reference in a new issue