From a10a9141f820199c00750e1c9765f0a981b74901 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 8 Dec 2023 15:44:00 +0100 Subject: [PATCH] Remove useless call to repo, add todos --- routers/api/v1/activitypub/repository.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 419374c6f7..f6b89cf4e9 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -272,7 +272,7 @@ func RepositoryInbox(ctx *context.APIContext) { switch len(users) { case 0: { - body, err := getBody(remoteStargazer, ctx.Repo.Owner.HTMLURL(), ctx) + body, err := getBody(remoteStargazer, "does not exist yet", ctx) // ToDo: We would need to insert the repo or its owners key here if err != nil { panic(fmt.Errorf("http get failed: %v", err)) } @@ -292,6 +292,9 @@ func RepositoryInbox(ctx *context.APIContext) { case 1: { user = users[0] + log.Info("Found user full name was: %v", user.FullName) + log.Info("Found user name was: %v", user.Name) + log.Info("Found user name was: %v", user.LoginName) log.Info("%v", user) } default: