link}?last=$newcomment#$newcomment"; abort($target, ($Page->api ? 200 : 303) . ' reply success'); $_POST['reply'] = NULL; } catch (Exception $e) { if ($Page->api) { abort(ucfirst($e->getMessage()), '500 reply error'); } printf("

Antwoord niet opgeslagen: %s.

\n\n", nl2br(htmlspecialchars($e->getMessage())) ); } } $cols = "*, (SELECT json_agg(journal.*) FROM journal WHERE comment_id = comments.id AND property = 'attr') AS journal"; $query = $Db->query("SELECT $cols FROM comments WHERE page = ? ORDER BY created", [$Page->link]); if ($row = $query->fetch()) { print $row->message; $Page->teaser = $row->raw; } print '\n\n";