diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 8b2b364b8b..1cfe2830c9 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -95,11 +95,7 @@ func RepositoryInbox(ctx *context.APIContext) { } // Is the ActorData Struct valid? - err = actor.Validate() - - if err != nil { - panic(err) - } + actor.PanicIfInvalid() log.Info("RepositoryInbox: Actor parsed. %v", actor)