Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

add some pseudocode

This commit is contained in:
Michael Jerger 2023-11-15 09:23:03 +01:00
parent ab92891091
commit d10c1094d9

View file

@ -76,6 +76,12 @@ func RepositoryInbox(ctx *context.APIContext) {
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)
// assume actor is: "actor": "https://codeberg.org/api/activitypub/user-id/12345"
// parse actor
// if not actor.isValid() then exit_with_error
// get_person_by_rest
// create_user_from_person (if not alreaydy present)
// wait 15 sec.
ctx.Status(http.StatusNoContent)