1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

Use correct target for get request

This commit is contained in:
erik 2023-11-28 15:17:34 +01:00 committed by Michael Jerger
parent 0388240039
commit e60d89cb67

View file

@ -105,12 +105,13 @@ func RepositoryInbox(ctx *context.APIContext) {
} }
// get_person_by_rest // get_person_by_rest
bytes := []byte{0} bytes := []byte{0} // no body needed for getting user actor
target := opt.ID.GetID().String() target := opt.Actor.GetID().String() // target is the person actor that originally performed the star activity
response, err := client.Get(bytes, target) response, err := client.Get(bytes, target)
log.Info("target: %v", target)
log.Info("http client. %v", client) log.Info("http client. %v", client)
log.Info("person: %v\n error: ", response, err) log.Info("response: %v\n error: ", response, err)
// create_user_from_person (if not alreaydy present) // create_user_from_person (if not alreaydy present)