From d10c1094d9d3fae550874b2b5aeec773415c2c22 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 15 Nov 2023 09:23:03 +0100 Subject: [PATCH] add some pseudocode --- routers/api/v1/activitypub/repository.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 3c9aa35eda..03522887e6 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -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)