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),