mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
Rename targe to remoteStargazer
This commit is contained in:
parent
de9e4dea61
commit
9dcbe0177e
1 changed files with 5 additions and 5 deletions
|
@ -181,9 +181,9 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get_person_by_rest
|
// get_person_by_rest
|
||||||
bytes := []byte{0} // no body needed for getting user actor
|
bytes := []byte{0} // no body needed for getting user actor
|
||||||
target := activity.Actor.GetID().String() // target is the person actor that originally performed the star activity
|
remoteStargazer := activity.Actor.GetID().String() // used as LoginName in newly created user
|
||||||
response, err := client.Get(bytes, target)
|
response, err := client.Get(bytes, remoteStargazer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("target: %v", target)
|
log.Info("remoteStargazer: %v", remoteStargazer)
|
||||||
log.Info("http client. %v", client)
|
log.Info("http client. %v", client)
|
||||||
log.Info("response: %v\n error: ", response, err)
|
log.Info("response: %v\n error: ", response, err)
|
||||||
log.Info("Person is: %v", person)
|
log.Info("Person is: %v", person)
|
||||||
|
@ -245,7 +245,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
EmailNotificationsPreference: "disabled",
|
EmailNotificationsPreference: "disabled",
|
||||||
Passwd: password,
|
Passwd: password,
|
||||||
MustChangePassword: false,
|
MustChangePassword: false,
|
||||||
LoginName: target,
|
LoginName: remoteStargazer,
|
||||||
Type: user_model.UserTypeRemoteUser,
|
Type: user_model.UserTypeRemoteUser,
|
||||||
IsAdmin: false,
|
IsAdmin: false,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue