From 0c367070aff6694290f9f3155068f7f0f520d521 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 16 Nov 2023 15:06:41 +0100 Subject: [PATCH] Call validate star --- routers/api/v1/activitypub/repository.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index c59b3e5f65..e2f65bd015 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -73,6 +73,12 @@ func RepositoryInbox(ctx *context.APIContext) { log.Info("RepositoryInbox: repo %v, %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name) opt := web.GetForm(ctx).(*forgefed.Star) + err := opt.ValidateStar() + + if err != nil { + panic(err) + } + log.Info("RepositoryInbox: Activity.Source %v", opt.Source) log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)