issue: indicate reply updates to admins
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 5 Nov 2021 16:47:12 +0000 (17:47 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 5 Nov 2021 18:23:10 +0000 (19:23 +0100)
widget/reply.php

index f9248512105bda05860bf691d212bbf7d1e0e3b3..7e7d327f3c2728d13a2cbc449a7d0a964f3c2060 100644 (file)
@@ -34,8 +34,12 @@ $imagecount = 0;
 while ($row = $query->fetch()) {
        $rowuser = new User("profile/{$row->author}");
        printf('<li id="%d">', $row->id);
+       $rowdate = showdate(preg_split('/\D/', $row->created));
+       if ($User->admin('beheer') and $row->updated) {
+               $rowdate = "<s>$rowdate</s> " . showdate(preg_split('/\D/', $row->updated));
+       }
        printf('<strong>%s</strong> <small class=date>%s</small>',
-               $rowuser->html, showdate(preg_split('/\D/', $row->created))
+               $rowuser->html, $rowdate
        );
        if ($html = $row->message) {
                $html = preg_replace('/(?<=<img )/',