X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/dceaed615cc4046d0f4145d17580fa1b7471c538..1b37c53095bb46844910ce3f0b699ea9a0b152d8:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 0a0e4e5..4da0ffa 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -86,13 +86,19 @@ $query = $Db->query("SELECT $cols FROM comments WHERE page = ? ORDER BY created" print '
\n%s\n", $row->message); + if ($html = $row->message) { + $html = preg_replace('/(?<= 2 ? 'loading="lazy" ' : '', $html, -1, $found); + $imagecount += $found; + printf("
\n%s\n", $html); + } if ($changes = json_decode($row->journal)) { print '