From 62eae6564f68bfceec42652edfddda05d8e04276 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 22 Nov 2023 16:40:03 +0100 Subject: [PATCH] Fix bug in validation --- models/activitypub/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }