From 68cc74d13974cbc820cc117840351928042add80 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 5 Dec 2023 14:50:46 +0100 Subject: [PATCH] Use actionsUser for creating http client --- routers/api/v1/activitypub/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index d88f554d13..6f402b6bb2 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -176,7 +176,7 @@ func RepositoryInbox(ctx *context.APIContext) { // make http client // TODO: this should also work without autorizing the api call // doer might be empty 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 { panic(err) }