Rename targe to remoteStargazer

This commit is contained in:
erik 2023-12-05 14:53:10 +01:00 committed by Michael Jerger
parent de9e4dea61
commit 9dcbe0177e

View file

@ -181,9 +181,9 @@ func RepositoryInbox(ctx *context.APIContext) {
}
// get_person_by_rest
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
response, err := client.Get(bytes, target)
bytes := []byte{0} // no body needed for getting user actor
remoteStargazer := activity.Actor.GetID().String() // used as LoginName in newly created user
response, err := client.Get(bytes, remoteStargazer)
if err != nil {
panic(err)
}
@ -200,7 +200,7 @@ func RepositoryInbox(ctx *context.APIContext) {
panic(err)
}
log.Info("target: %v", target)
log.Info("remoteStargazer: %v", remoteStargazer)
log.Info("http client. %v", client)
log.Info("response: %v\n error: ", response, err)
log.Info("Person is: %v", person)
@ -245,7 +245,7 @@ func RepositoryInbox(ctx *context.APIContext) {
EmailNotificationsPreference: "disabled",
Passwd: password,
MustChangePassword: false,
LoginName: target,
LoginName: remoteStargazer,
Type: user_model.UserTypeRemoteUser,
IsAdmin: false,
}