homepage_widget: improve notifications rows

This commit is contained in:
2022-01-26 14:06:49 +01:00
parent 41a6366efe
commit 39a7cecd24
4 changed files with 29 additions and 22 deletions

View File

@@ -51,6 +51,7 @@ class NotificationNormalizer implements NormalizerAwareInterface, NormalizerInte
return [
'type' => 'notification',
'id' => $object->getId(),
'addressees' => $this->normalizer->normalize($object->getAddressees(), $format, $context),
'date' => $this->normalizer->normalize($object->getDate(), $format, $context),
'isRead' => $object->isReadBy($this->security->getUser()),