working implementation of journal display

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-08-01 00:46:52 +02:00
parent b0096ad5f4
commit d4feda141e
22 changed files with 100 additions and 95 deletions
@@ -172,8 +172,12 @@ public class MessageSystem extends BaseHandler implements PostBox, EventListener
@Override
public void onEvent(Event<?> event) {
var message = new TranslatableMessage(event.initiator(),event.subject(),event.describe(),null);
var audience = new HashSet<>(event.audience());
var description = event.describe(true);
var payload = event.payload();
var location = t("You can view/edit this {object} at {base_url}/{path}", OBJECT,t(payload.getClass().getSimpleName()), PATH,payload.path());
var body = t("{description}\n\n{location}", DESCRIPTION,description, LOCATION,location);
var message = new TranslatableMessage(event.initiator(),event.subject(),body,null);
var audience = new HashSet<>(event.audience());
audience.remove(event.initiator());
send(new Envelope<>(0,message,audience));
}