Files
ops-Gazelle/sections/forums/get_post.php
T
2023-09-19 13:19:58 +02:00

12 lines
253 B
PHP

<?php
$post = (new Gazelle\Manager\ForumPost)->findById((int)($_GET['post'] ?? 0));
if (is_null($post)) {
error(404);
}
if (!$Viewer->readAccess($post->thread()->forum())) {
error(403);
}
header('Content-type: text/plain');
echo $post->body();