X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/edfd8ba72bb0144615f28f6bbd54f3cbfc31cb4f..05c560470887c86a30c82360d7be5caf0de1baa4:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 685a611..66e9587 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -88,6 +88,11 @@ if ($_POST) { $cols = '*, (SELECT json_agg(journal.*) FROM journal WHERE comment_id = comments.id) 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 '