diff --git a/efservices/src/main/java/org/eclipsefoundation/efservices/api/models/EfUser.java b/efservices/src/main/java/org/eclipsefoundation/efservices/api/models/EfUser.java index 6c4a91bc80611a7133eeaaafd67d40591f216fa1..e456158144587102f3120be56d0d019bcba2747f 100644 --- a/efservices/src/main/java/org/eclipsefoundation/efservices/api/models/EfUser.java +++ b/efservices/src/main/java/org/eclipsefoundation/efservices/api/models/EfUser.java @@ -70,10 +70,12 @@ public record EfUser(String uid, String name, String picture, String mail, Eca e } /** - * Converts the user profile to the restricted public view. + * Converts the user profile to the restricted public view. Json Ignore is super important, as otherwise this will recursively add + * itself to json and crash. * * @return current user profile, with the private data blanked out. */ + @JsonIgnore public EfUser getPublicProfile() { return EfUserBuilder .builder(this)