mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-29 05:06:11 +01:00
add some pseudocode
This commit is contained in:
parent
ab92891091
commit
d10c1094d9
|
@ -76,6 +76,12 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)
|
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)
|
||||||
|
|
||||||
// assume actor is: "actor": "https://codeberg.org/api/activitypub/user-id/12345"
|
// 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)
|
ctx.Status(http.StatusNoContent)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue