Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

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 // 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,
} }