git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecfc420
)
issue: indicate reply updates to admins
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 5 Nov 2021 16:47:12 +0000
(17:47 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 5 Nov 2021 18:23:10 +0000
(19:23 +0100)
widget/reply.php
patch
|
blob
|
history
diff --git
a/widget/reply.php
b/widget/reply.php
index f9248512105bda05860bf691d212bbf7d1e0e3b3..7e7d327f3c2728d13a2cbc449a7d0a964f3c2060 100644
(file)
--- 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('<li id="%d">', $row->id);
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>',
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 )/',
);
if ($html = $row->message) {
$html = preg_replace('/(?<=<img )/',