From 9f016d36731d3b1aa972ce5529f920aba7680512 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 29 Nov 2023 15:33:22 +0100 Subject: [PATCH] Move to extra var --- routers/api/v1/activitypub/repository.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }