From 504f50af9a3baba22ff79b3f0149af77852d731f Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:31:43 +0300 Subject: [PATCH] fields blacklisted_by_me, blacklisted --- Web/Models/Entities/User.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index c74a2538..61ea120b 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -1418,6 +1418,20 @@ class User extends RowModel case 'real_id': $res->real_id = $this->getRealId(); break; + case "blacklisted_by_me": + if(!$user) { + continue; + } + + $res->blacklisted_by_me = (int)$this->isBlacklistedBy($user); + break; + case "blacklisted": + if(!$user) { + continue; + } + + $res->blacklisted = (int)$user->isBlacklistedBy($this); + break; } }