notificaiton: improve NotificationHandlerInterface + mark notification

as unread if a comment is appended
This commit is contained in:
2022-01-04 19:02:03 +01:00
parent ebc6d21ba6
commit 4ef024516c
5 changed files with 40 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ final class ActivityNotificationHandler implements NotificationHandlerInterface
$this->activityRepository = $activityRepository;
}
public function getTemplate(array $options = []): string
public function getTemplate(Notification $notification, array $options = []): string
{
return '@ChillActivity/Activity/showInNotification.html.twig';
}