$Page->title .= ': '.htmlspecialchars($Issue->subject);
$Page->teaser = $Issue->body;
- if (!$User) return;
+ if ($Page->api) return;
$Page->body = $replies; # find image
print "<h2>{$Page->title}</h2>\n";
print "</div>\n";
return;
}
-elseif (!$User) return;
if ($_POST) {
require_once 'upload.inc.php';
}
$_POST = [];
}
+if ($Page->api) return;
$subsql = "SELECT count(*) FROM comments WHERE page=i.page||'/'||i.id";
$cols = "*, ($subsql AND message IS NOT NULL) AS replycount";