From a5daa36573ce1521ca5351a0a4f3b7bbd0d07f04 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 12 Jan 2023 21:35:11 +0000 Subject: [PATCH] Return if user does exist, not if does not exist --- routers/api/v1/activitypub/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/create.go b/routers/api/v1/activitypub/create.go index 82470a1a33..a58f775497 100644 --- a/routers/api/v1/activitypub/create.go +++ b/routers/api/v1/activitypub/create.go @@ -31,7 +31,7 @@ import ( // Create a new federated user from a Person object func createPerson(ctx context.Context, person *ap.Person) error { _, err := user_model.GetUserByIRI(ctx, person.GetLink().String()) - if user_model.IsErrUserNotExist(err) { + if !user_model.IsErrUserNotExist(err) { // User already exists return err }