From 28665e987ef8be35ce4f7082bd7aa5c91371397a Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 5 Nov 2021 17:47:12 +0100 Subject: [PATCH] issue: indicate reply updates to admins --- widget/reply.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widget/reply.php b/widget/reply.php index f924851..7e7d327 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -34,8 +34,12 @@ $imagecount = 0; while ($row = $query->fetch()) { $rowuser = new User("profile/{$row->author}"); printf('
  • ', $row->id); + $rowdate = showdate(preg_split('/\D/', $row->created)); + if ($User->admin('beheer') and $row->updated) { + $rowdate = "$rowdate " . showdate(preg_split('/\D/', $row->updated)); + } printf('%s %s', - $rowuser->html, showdate(preg_split('/\D/', $row->created)) + $rowuser->html, $rowdate ); if ($html = $row->message) { $html = preg_replace('/(?<=