Load forum post text lazily.

This commit is contained in:
akwizgran
2025-04-29 12:20:20 +01:00
parent 070a0181d9
commit 1542be20db
16 changed files with 93 additions and 60 deletions

View File

@@ -16,13 +16,10 @@ public class ForumPostReceivedEvent extends Event {
private final GroupId groupId;
private final ForumPostHeader header;
private final String text;
public ForumPostReceivedEvent(GroupId groupId, ForumPostHeader header,
String text) {
public ForumPostReceivedEvent(GroupId groupId, ForumPostHeader header) {
this.groupId = groupId;
this.header = header;
this.text = text;
}
public GroupId getGroupId() {
@@ -32,8 +29,4 @@ public class ForumPostReceivedEvent extends Event {
public ForumPostHeader getHeader() {
return header;
}
public String getText() {
return text;
}
}