Browse Source

fix magnet comment access

main
ghost 1 year ago
parent
commit
29146f73fe
  1. 3
      src/public/magnet.php

3
src/public/magnet.php

@ -369,7 +369,8 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?> @@ -369,7 +369,8 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
<div class="padding-x-16 padding-t-16 padding-b-8 margin-t-8 border-radius-3 background-color-night <?php echo !$magnetComment->approved || !$magnetComment->public ? 'opacity-06 opacity-hover-1' : false ?>">
<a name="comment-<?php echo $magnetComment->magnetCommentId ?>"></a>
<?php if ($response->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)) { ?>
<div class="margin-b-16">
<?php echo nl2br(htmlentities($magnetComment->value)) ?>
</div>

Loading…
Cancel
Save