diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index b2f42ca9bd..549d97e918 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -99,7 +99,8 @@ func RepositoryInbox(ctx *context.APIContext) { */ // 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 { panic(err) }