1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Clearer description

This commit is contained in:
erik 2023-12-06 15:50:38 +01:00 committed by Michael Jerger
parent 77b6402e77
commit 01506f9836

View file

@ -206,7 +206,7 @@ func RepositoryInbox(ctx *context.APIContext) {
panic(err) panic(err)
} }
// validate receiverActorId against repo owner // validate receiverActorId against context repo
repositoryID := ctx.Repo.Repository.ID repositoryID := ctx.Repo.Repository.ID
if repositoryID != int64(receivedRepoId.GetUserId()) { if repositoryID != int64(receivedRepoId.GetUserId()) {
panic( panic(
@ -234,14 +234,14 @@ func RepositoryInbox(ctx *context.APIContext) {
} }
if len(users) == 0 { if len(users) == 0 {
// ToDo: We need a remote server with federation enabled to properly test this
person, err := getPersonByRest(remoteStargazer, starReceiver, ctx) person, err := getPersonByRest(remoteStargazer, starReceiver, ctx)
if err != nil { if err != nil {
panic(fmt.Errorf("getting user failed: %v", err)) panic(fmt.Errorf("getting user failed: %v", err))
} }
// create user
// ToDo: We need a remote server with federation enabled to properly test this
// create user
email, err := generateUUIDMail(person) email, err := generateUUIDMail(person)
if err != nil { if err != nil {
panic(fmt.Errorf("generate user failed: %v", err)) panic(fmt.Errorf("generate user failed: %v", err))