X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/2d7b510a9d33a552b024e1db00212658f21afce6..4e8cf4634404ed80dfa8dcb9fb56a577897b9da1:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index f924851..da993c9 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -34,9 +34,16 @@ $imagecount = 0; while ($row = $query->fetch()) { $rowuser = new User("profile/{$row->author}"); printf('
  • ', $row->id); - printf('%s %s', - $rowuser->html, showdate(preg_split('/\D/', $row->created)) - ); + printf('%s', $rowuser->html); + $rowdate = showdate(preg_split('/\D/', $row->created)); + if ($User->admin('beheer') and $row->updated) { + $rowdate = "$rowdate " . showdate(preg_split('/\D/', $row->updated)); + } + printf(' %s', $rowdate); + if ($User->admin('beheer') and $User->admin('user') || $User->login === $row->author) { + printf(' %s', + "/{$Page->link}/{$row->id}", 'reactie aanpassen', "\u{270D}"); + } if ($html = $row->message) { $html = preg_replace('/(?<= 2 ? 'loading="lazy" ' : '', $html, -1, $found);