diff --git a/src/Controller/WatchListController.php b/src/Controller/WatchListController.php index df787e0..72dea43 100644 --- a/src/Controller/WatchListController.php +++ b/src/Controller/WatchListController.php @@ -351,10 +351,7 @@ public function getTrackedDomains(): array /** @var DomainEvent|null $exp */ $exp = $domain->getEvents()->findFirst(fn (int $key, DomainEvent $e) => !$e->getDeleted() && 'expiration' === $e->getAction()); - if (!$domain->getDeleted() - && null !== $exp && $exp->getDate() > new \DateTimeImmutable() - && count(array_filter($domain->getEvents()->toArray(), fn (DomainEvent $e) => !$e->getDeleted() && 'expiration' === $e->getAction())) > 0 - && !in_array($domain, $domains)) { + if (!$domain->getDeleted() && null !== $exp && !in_array($domain, $domains)) { $domains[] = $domain; } }