Explorar o código

Exclude spam packages from vendor pages too

Jordi Boggiano %!s(int64=5) %!d(string=hai) anos
pai
achega
b9eaba597e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Packagist/WebBundle/Entity/PackageRepository.php

+ 2 - 0
src/Packagist/WebBundle/Entity/PackageRepository.php

@@ -295,6 +295,8 @@ class PackageRepository extends EntityRepository
             $qb->leftJoin('v.tags', 't');
         }
 
+        $qb->andWhere('(p.replacementPackage IS NULL OR p.replacementPackage != \'spam/spam\')');
+
         $qb->orderBy('p.abandoned');
         if (true === $orderByName) {
             $qb->addOrderBy('p.name');