Skip to content

Commit

Permalink
Include imageUrl for reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin committed Nov 28, 2024
1 parent 31bd52c commit 7feed75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
public class Reaction extends DomainObject {

@ManyToOne
// Avoid to leak too much information, only the name (for display) and the id (for comparison) is needed)
@JsonIncludeProperties({ "id", "name" })
// Avoid to leak too much information, only the name + image (for display) and the id (for comparison) is needed)
@JsonIncludeProperties({ "id", "name", "image_url" })
private User user;

@CreatedDate
Expand Down

0 comments on commit 7feed75

Please sign in to comment.