From cf2302262663be120a530f2357c55e327ea548cd Mon Sep 17 00:00:00 2001 From: veselcraft Date: Thu, 20 Jul 2023 02:36:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=9B=D0=AF=D0=AF=D0=AF=D0=AF=D0=AF?= =?UTF-8?q?=D0=AF=D0=AF=D0=AF=D0=A2=D0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/Models/Entities/BlacklistItem.php | 2 -- Web/Models/Repositories/Blacklists.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/Web/Models/Entities/BlacklistItem.php b/Web/Models/Entities/BlacklistItem.php index cf1477987..fcc194523 100644 --- a/Web/Models/Entities/BlacklistItem.php +++ b/Web/Models/Entities/BlacklistItem.php @@ -28,6 +28,4 @@ function getCreationDate(): DateTime { return new DateTime($this->getRecord()->created); } - - } \ No newline at end of file diff --git a/Web/Models/Repositories/Blacklists.php b/Web/Models/Repositories/Blacklists.php index 50fb9d703..f13534ef9 100644 --- a/Web/Models/Repositories/Blacklists.php +++ b/Web/Models/Repositories/Blacklists.php @@ -41,9 +41,6 @@ function isBanned(User $author, User $target): bool if (!$author || !$target) return FALSE; - bdump($this->getByAuthorAndTarget($author->getId(), $target->getId()), "хуита какая-то вроде для бл*клиста"); - - return !is_null($this->getByAuthorAndTarget($author->getId(), $target->getId())); } }