# 恶意私信后账号自行删除

**URL:** <https://meta.discourse.org/t/malicious-personal-messages-followed-by-account-self-deletion/125158>\
**Category:** Bug\
**Created:** [2019 年8 月 7 日 18:17 UTC](https://meta.discourse.org/t/malicious-personal-messages-followed-by-account-self-deletion/125158 "2019-08-07T18:17:19Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

作者： ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
发布日期： [2019 年8 月 9 日 10:27 UTC](https://meta.discourse.org/t/malicious-personal-messages-followed-by-account-self-deletion/125158/18 "2019-08-09T10:27:54Z")

</div>

看起来限制是每用户仅允许发布 1 条帖子，且私信（PM）中的帖子完全不计算在内。主题中的首条帖子似乎也不计入。☹

> <https://github.com/discourse/discourse/blob/74d78e3636487ca7ea3894539e88e391be6b1acd/lib/guardian/user_guardian.rb#L63-L64>

> <https://github.com/discourse/discourse/blob/74d78e3636487ca7ea3894539e88e391be6b1acd/lib/post_creator.rb#L521-L524>

那么，新规则应该是什么？是否应统计所有帖子，除非该帖子属于与系统用户（例如 discobot）的私信？

---

_[View the full topic](https://meta.discourse.org/t/malicious-personal-messages-followed-by-account-self-deletion/125158)._
