Skip to content

Commit

Permalink
Fix: Simpler definisjon of Anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 5, 2026
1 parent d3565a3 commit 4ef68e8
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ public Feedback(User user, String comment) {
this.comment = comment;
this.date = LocalDateTime.now();

// ASSUMES that this is the way to get the anonymous setting from the user's settings.
if (user.getSettings().isAnonymous() == false) {
this.isAnonymous = true;
} else {
this.isAnonymous = false;
}
this.isAnonymous = user.getSettings().isAnonymous();
}

/**
Expand Down

0 comments on commit 4ef68e8

Please sign in to comment.