mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:25:31 +00:00
Clearer description
This commit is contained in:
parent
77b6402e77
commit
01506f9836
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue