# خطأ في الحذف الدائم

**URL:** <https://meta.discourse.org/t/permanent-deletion-bug/231576>\
**Category:** Bug\
**Tags:** permanently-delete\
**Created:** [30 يونيو 2022، 3:09م UTC](https://meta.discourse.org/t/permanent-deletion-bug/231576 "2022-06-30T15:09:56Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [6 يوليو 2022، 4:57م UTC](https://meta.discourse.org/t/permanent-deletion-bug/231576/21 "2022-07-06T16:57:26Z")

</div>

لقد قمت بإصلاح الخلل الذي أبلغت عنه باستخدام طلب السحب هذا بالأمس، والذي تم دمجه بالفعل ويمكن نشره إذا قمت بتحديث مثيل Discourse الخاص بك:

> <https://github.com/discourse/discourse/pull/17329>
>
> This was a problem when serializing deleted posts because they might
> belong to …a topic that was permanently deleted. This caused to DB
> lookup to fail immediately and raise an exception. In this case, the
> endpoint returned a 404.

ومع ذلك، اكتشفنا أن الحذف الصعب للمواضيع يمكن أن يترك منشورات إجراءات صغيرة يتيمة في قاعدة البيانات. تم إصلاح هذا الخلل الثاني باستخدام:

> <https://github.com/discourse/discourse/pull/17359>
>
> Hard deleting topics that contained soft deleted posts or small actions
> used to… create orphan posts because only the first post was hard
> deleted. This commit adds an error message if there are still posts left
> in the topic that must be hard deleted first or hard deletes all small
> actions too immediately (there is no other way of hard deleting a small
> action because there is no wrench menu).

أعتقد أن كل شيء يجب أن يعمل بشكل جيد الآن. يرجى إعلامنا إذا كانت لديك مشاكل أخرى.

---

_[View the full topic](https://meta.discourse.org/t/permanent-deletion-bug/231576)._
