Commit 671d532a authored by Ben Hayward's avatar Ben Hayward

Added an error log in

1 merge request!284WIP:[Sprint/JollyJellyfish](fix): Filtering banned and deleted channels
Pipeline #73024337 canceled with stages
in 12 seconds
......@@ -84,8 +84,10 @@ 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())
if ($entity->getBanned() || $entity->getDeleted()) {
error_log("Entity ".$entity->guid." has been disallowed 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