# MyBB importer exposes deleted posts

**URL:** <https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023>\
**Category:** Bug\
**Tags:** pr-welcome\
**Created:** [October 2, 2015, 2:23am UTC](https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023 "2015-10-02T02:23:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)\
**Post date:** [October 2, 2015, 2:23am UTC](https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023/1 "2015-10-02T02:23:25Z")

</div>

After going through a thread with 400+ posts to see why the original thread had 415 posts while [the imported one](http://discourse.quantifiedselfforum.com/t/zeo-shutting-down-export-your-data/561/) had 417, it appears that the importer doesn’t mark deleted posts in any way.

MyBB soft-deleted posts and they’re no longer visible even to Admins. After importing into Discourse, the deleted posts were visible to all users. This may pose a privacy problem if sensitive data had been exposed in the deleted posts.

---

<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:** [January 10, 2020, 4:35am UTC](https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023/2 "2020-01-10T04:35:20Z")

</div>

Pretty sure that many years later this is still the case:

> <https://github.com/discourse/discourse/blob/f1cd599966fc55102201161b877c3b25f0c1df5e/script/import_scripts/mybb.rb#L106-L121>

Adding a PR welcome in case anyone wants to repair this importer. ⏫

---

<div class="post-metadata">

**Author:** ![ruoxin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ruoxin/32/227350_2.png) [@ruoxin](https://meta.discourse.org/u/ruoxin)\
**Post date:** [July 12, 2021, 7:39am UTC](https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023/3 "2021-07-12T07:39:46Z")

</div>

[https://github.com/discourse/discourse/pull/13700](https://github.com/discourse/discourse/pull/13700)

This should fix this problem.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [April 13, 2023, 8:10am UTC](https://meta.discourse.org/t/mybb-importer-exposes-deleted-posts/34023/4 "2023-04-13T08:10:31Z")

</div>


