# "Body too Similar" Compares Posts and Message

**URL:** <https://meta.discourse.org/t/body-too-similar-compares-posts-and-message/231089>\
**Category:** Bug\
**Created:** [June 25, 2022, 12:57pm UTC](https://meta.discourse.org/t/body-too-similar-compares-posts-and-message/231089 "2022-06-25T12:57:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [June 27, 2022, 8:00am UTC](https://meta.discourse.org/t/body-too-similar-compares-posts-and-message/231089/8 "2022-06-27T08:00:04Z")

</div>

I think @codinghorror has been quite a fan of using PMs for long drafts, having it block yourself is not our intention here:

There is a very simple fix/change in Discourse:

> <https://github.com/discourse/discourse/blob/7d41e980c90c7511f78a7645c51a52ea67a74322/app/models/post.rb#L253-L255>

Swap to:

```plaintext
    def unique_post_key
      "unique-post-#{user_id}:topic?.private_message?:#{raw_hash}"
    end

```

That plus a quick test will fix this workflow.

I do not thing safety guarantees are hampered by this change.

Will go ahead and make this change tomorrow unless there is an objection.

---

_[View the full topic](https://meta.discourse.org/t/body-too-similar-compares-posts-and-message/231089)._
