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

@@ -83,10 +83,7 @@ class ForumManagerImpl extends BdfIncomingMessageHook implements ForumManager {
messageTracker.trackIncomingMessage(txn, m);
ForumPostHeader header = getForumPostHeader(txn, m.getId(), meta);
String text = getPostText(body);
ForumPostReceivedEvent event =
new ForumPostReceivedEvent(m.getGroupId(), header, text);
txn.attach(event);
txn.attach(new ForumPostReceivedEvent(m.getGroupId(), header));
return ACCEPT_SHARE;
}