Commit 7526d8a3 authored by Ben Hayward's avatar Ben Hayward

called undefined method, fixed

1 merge request!284WIP:[Sprint/JollyJellyfish](fix): Filtering banned and deleted channels
Pipeline #73024487 failed with stages
in 14 minutes and 10 seconds
......@@ -84,8 +84,8 @@ class Manager
// TODO: make this a bulk request vs sequential
foreach ($response as $suggestion) {
$entity = $suggestion->getEntity() ?: $this->entitiesBuilder->single($suggestion->getEntityGuid());
if ($entity->getBanned() || $entity->getDeleted()) {
error_log("Entity ".$entity->guid." has been disallowed from suggestions t-".time());
if ($entity->getDeleted()) {
error_log("Deleted entity ".$entity->guid." has been omitted from suggestions t-".time());
break;
}
$suggestion->setEntity($entity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment