mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 11:43:57 +01:00
Move to extra var
This commit is contained in:
parent
7071117864
commit
9f016d3673
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// make http client
|
// make http client
|
||||||
client, err := api.NewClient(ctx, ctx.Doer, opt.To.GetID().String()) // ToDo: This is hacky, we need a hostname from somewhere
|
host := opt.To.GetID().String()
|
||||||
|
client, err := api.NewClient(ctx, ctx.Doer, 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