diff --git a/models/activitypub/actor.go b/models/activitypub/actor.go index e46befc68c..966b1c1c7d 100644 --- a/models/activitypub/actor.go +++ b/models/activitypub/actor.go @@ -22,7 +22,7 @@ type ActorID struct { func (a ActorID) validate_is_not_empty(str string, field string) error { - if str != "" { + if str == "" { return fmt.Errorf("field %v was empty", field) }