mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
add some pseudocode
This commit is contained in:
parent
ab92891091
commit
d10c1094d9
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue