post_edits report 的问题

对于自我编辑,我在 app/models/concerns/reports/post_edits.rb 中发现了这个:

if editor_username
        builder.where("editor.username = ?", editor_username)
      else
        builder.where("editor.id > 0 AND editor.id != author.id")
      end

也就是说,如果用户名存在,则显示该用户名的编辑内容,否则显示编辑者不等于作者的编辑内容。这是出乎意料的。


对于计数不匹配,可能是因为它计算了对同一帖子的多次编辑,但只显示一次帖子。我对此持怀疑态度,因为我有一些用户有 150 多次编辑,但日志中显示少于 50 次编辑。很难相信他们平均编辑帖子三次,但我想什么样的人都有 :slightly_smiling_face: