forked from kevadesu/forgejo
Implement and use Validatable interface
This commit is contained in:
parent
235ed7cd1e
commit
3d2b5115ad
2 changed files with 6 additions and 2 deletions
|
@ -96,7 +96,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
|||
}
|
||||
|
||||
// Is the ActorData Struct valid?
|
||||
err = actor.ValidateActorID()
|
||||
err = actor.Validate()
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue