From 82fe1d3e425877d313e2f06647c0573b9f0bc7e6 Mon Sep 17 00:00:00 2001 From: Clemens Date: Mon, 6 May 2024 16:01:23 +0200 Subject: [PATCH] make fmt --- models/forgefed/nodeinfo.go | 1 + routers/api/v1/activitypub/response.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/forgefed/nodeinfo.go b/models/forgefed/nodeinfo.go index 292c658cc9..bb56570635 100644 --- a/models/forgefed/nodeinfo.go +++ b/models/forgefed/nodeinfo.go @@ -7,6 +7,7 @@ import ( "net/url" "code.gitea.io/gitea/modules/validation" + "github.com/valyala/fastjson" ) diff --git a/routers/api/v1/activitypub/response.go b/routers/api/v1/activitypub/response.go index a2a053b34a..42ef375f12 100644 --- a/routers/api/v1/activitypub/response.go +++ b/routers/api/v1/activitypub/response.go @@ -16,7 +16,7 @@ import ( ) // Respond with an ActivityStreams object -func response(ctx *context.APIContext, v interface{}) { +func response(ctx *context.APIContext, v any) { binary, err := jsonld.WithContext( jsonld.IRI(ap.ActivityBaseURI), jsonld.IRI(ap.SecurityContextURI),