update similar posts
This commit is contained in:
parent
a142474085
commit
88b43b9202
|
@ -66,6 +66,10 @@ class PostRepository extends ServiceEntityRepository
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (null === $result->getImage()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($result->getPublishedAt() > $now) {
|
if ($result->getPublishedAt() > $now) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue