mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 09:21:13 -05:00
Use correct target for get request
This commit is contained in:
parent
0388240039
commit
e60d89cb67
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue