Call validate star
This commit is contained in:
parent
b1f3706575
commit
0c367070af
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
log.Info("RepositoryInbox: repo %v, %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name)
|
log.Info("RepositoryInbox: repo %v, %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name)
|
||||||
opt := web.GetForm(ctx).(*forgefed.Star)
|
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.Source %v", opt.Source)
|
||||||
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)
|
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue