From 29146f73fed7a2282da3ca3a7fe7ba7948422735 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 5 Sep 2023 21:40:43 +0300 Subject: [PATCH] fix magnet comment access --- src/public/magnet.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/public/magnet.php b/src/public/magnet.php index 05b6b89..2a89904 100644 --- a/src/public/magnet.php +++ b/src/public/magnet.php @@ -369,7 +369,8 @@ echo '' . PHP_EOL ?>
user->address == $db->getUser($magnetComment->userId)->address || - in_array($response->user->address, MODERATOR_IP_LIST)) { ?> + in_array($response->user->address, MODERATOR_IP_LIST) || + ($magnetComment->approved && $magnetComment->public)) { ?>
value)) ?>