Compare commits
2 Commits
f9faca55bb
...
b385e177ec
| Author | SHA1 | Date | |
|---|---|---|---|
| b385e177ec | |||
| 60f23051a9 |
@@ -92,7 +92,7 @@ $commentSql = "SELECT
|
|||||||
COALESCE(u.display_name, u.username, 'System') AS actor_name
|
COALESCE(u.display_name, u.username, 'System') AS actor_name
|
||||||
FROM audit_log al
|
FROM audit_log al
|
||||||
LEFT JOIN users u ON al.user_id = u.user_id
|
LEFT JOIN users u ON al.user_id = u.user_id
|
||||||
WHERE al.action_type = 'create'
|
WHERE al.action_type IN ('comment', 'create')
|
||||||
AND al.entity_type = 'comment'
|
AND al.entity_type = 'comment'
|
||||||
AND al.user_id != ?
|
AND al.user_id != ?
|
||||||
AND al.created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)
|
AND al.created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user