From 2398ef7efe83b09e5f9da89d3aaee5e4bfc130d3 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 22 Jul 2020 18:25:56 +0300 Subject: [PATCH] change --- application/Espo/Hooks/Common/Stream.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/Espo/Hooks/Common/Stream.php b/application/Espo/Hooks/Common/Stream.php index 1ad1e6caba..84766946f7 100644 --- a/application/Espo/Hooks/Common/Stream.php +++ b/application/Espo/Hooks/Common/Stream.php @@ -168,9 +168,8 @@ class Stream } } - protected function getAutofollowUserIdList(Entity $entity, array $ignoreList = []) + protected function getAutofollowUserIdList(string $entityType, array $ignoreList = []) { - $entityType = $entity->getEntityType(); $pdo = $this->entityManager->getPDO(); $userIdList = []; @@ -261,7 +260,7 @@ class Stream $entity->set('isFollowed', true); } - $autofollowUserIdList = $this->getAutofollowUserIdList($entity, $userIdList); + $autofollowUserIdList = $this->getAutofollowUserIdList($entity->getEntityType(), $userIdList); foreach ($autofollowUserIdList as $i => $userId) { if (in_array($userId, $userIdList)) { unset($autofollowUserIdList[$i]);