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)