mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
Use actionsUser for creating http client
This commit is contained in:
parent
d65e5aa70e
commit
68cc74d139
|
@ -176,7 +176,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
// make http client
|
// make http client
|
||||||
// TODO: this should also work without autorizing the api call // doer might be empty
|
// TODO: this should also work without autorizing the api call // doer might be empty
|
||||||
host := activity.To.GetID().String()
|
host := activity.To.GetID().String()
|
||||||
client, err := api.NewClient(ctx, ctx.Doer, host) // ToDo: This is hacky, we need a hostname from somewhere
|
client, err := api.NewClient(ctx, actionsUser, host) // ToDo: This is hacky, we need a hostname from somewhere
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue