1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

Call validate star

This commit is contained in:
erik 2023-11-16 15:06:41 +01:00 committed by Michael Jerger
parent b1f3706575
commit 0c367070af

View file

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