mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:32:45 +08:00
Exclude System user from post_edits report (#6130)
This commit is contained in:
parent
9afc4cf8c1
commit
d705f859db
|
@ -895,7 +895,8 @@ class Report
|
||||||
FROM post_revisions pr
|
FROM post_revisions pr
|
||||||
JOIN users u
|
JOIN users u
|
||||||
ON u.id = pr.user_id
|
ON u.id = pr.user_id
|
||||||
WHERE pr.created_at >= '#{report.start_date}'
|
WHERE u.id > 0
|
||||||
|
AND pr.created_at >= '#{report.start_date}'
|
||||||
AND pr.created_at <= '#{report.end_date}'
|
AND pr.created_at <= '#{report.end_date}'
|
||||||
ORDER BY pr.created_at DESC
|
ORDER BY pr.created_at DESC
|
||||||
LIMIT 20
|
LIMIT 20
|
||||||
|
|
Loading…
Reference in New Issue
Block a user