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:
4e8cf46
)
issue: hide unannounced messages from public activity
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 11 Nov 2021 19:46:59 +0000
(20:46 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 11 Nov 2021 20:23:16 +0000
(21:23 +0100)
widget/issue/activity.php
patch
|
blob
|
history
diff --git
a/widget/issue/activity.php
b/widget/issue/activity.php
index 919ce7773e8b696ab4b5c48aaacb888a623ecf86..1d1a37ae28d6629c3b7071f2285c5511c55d8a80 100644
(file)
--- a/
widget/issue/activity.php
+++ b/
widget/issue/activity.php
@@
-7,6
+7,7
@@
$cols = 'm.*, i.subject, i.updated, i.closed';
$sql = "SELECT $cols FROM messages m JOIN issues i ON i.id = issue";
$sql .= " WHERE message IS NOT NULL";
$sql .= " AND i.page <> 'spam'";
$sql = "SELECT $cols FROM messages m JOIN issues i ON i.id = issue";
$sql .= " WHERE message IS NOT NULL";
$sql .= " AND i.page <> 'spam'";
+$sql .= " AND m.announced";
$sql .= " ORDER BY m.created DESC LIMIT $limit";
$query = $Db->query($sql);
$rows = $query->fetchall();
$sql .= " ORDER BY m.created DESC LIMIT $limit";
$query = $Db->query($sql);
$rows = $query->fetchall();