From afe659f9f48cdc34f51edb92fc65ba65763bc56c Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 7 Dec 2023 13:54:07 +0100 Subject: [PATCH] Implement 5s waiting --- routers/api/v1/activitypub/repository.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 3596f94bb4..82e9cf6647 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -9,6 +9,7 @@ import ( "net/http" "net/url" "strings" + "time" "code.gitea.io/gitea/models/activitypub" "code.gitea.io/gitea/models/db" @@ -324,7 +325,8 @@ func RepositoryInbox(ctx *context.APIContext) { } } - // wait 15 sec. + // wait 5 sec. + time.Sleep(5 * time.Second) ctx.Status(http.StatusNoContent) }