# Argomento chiuso senza registrazione di sistema

**URL:** https://meta.discourse.org/t/topic-closed-without-system-record/196813
**Category:** Bug
**Created:** [12 Luglio 2021, 2:00am UTC](https://meta.discourse.org/t/topic-closed-without-system-record/196813 "2021-07-12T02:00:42Z")
**Posts on this page:** 1
**Showing post:** 50

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [5 Novembre 2021, 11:24am UTC](https://meta.discourse.org/t/topic-closed-without-system-record/196813/50 "2021-11-05T11:24:19Z")

</div>

Questo dovrebbe essere risolto in:

> <https://github.com/discourse/discourse/pull/14824>
>
> Bug report: https://meta.discourse.org/t/topic-closed-without-system-record/1968…13?u=osama.
> 
> Discourse allows regular users to delete their own topics, but to prevent abuse the deletion doesn't take effect immediately and the topic is marked for deletion by closing the topic and editing it to say \`(topic deleted by author)\` (it can be changed via text customizations but this is the default copy).
> 
> If the \`min\_first\_post\_length\` site setting is increased and becomes larger than the length of the default copy, the topic edit won't succeed but it will get closed resulting in a confusing situation where the topic appears to be closed for no reasons.
> 
> This PR skips all validations for the edit that Discourse makes when a topic is marked for deletion by the author.

I passaggi per riprodurre l’errore sono piuttosto semplici una volta capito cosa sta succedendo 😄 :

1. Come amministratore, modifica `min_first_post_length` impostandolo su un valore superiore a 25

2. Come utente normale, crea un argomento e poi cancellalo

3. Ti aspetteresti che l’argomento venga chiuso e modificato per indicare `(argomento cancellato dall'autore)`, ma verrà solo chiuso

Ciò che sta accadendo è che la stringa `(argomento cancellato dall'autore)` è più corta di `min_first_post_length` e, quando il sistema modifica l’argomento, le convalidhe sulla lunghezza del post non permettono alla modifica di andare a buon fine, ma l’argomento viene comunque chiuso perché questa operazione viene eseguita separatamente.

La mia correzione sopra riportata aggira tutte le convalidhe per la revisione che il sistema esegue quando un utente cancella i propri post.

---

_[View the full topic](https://meta.discourse.org/t/topic-closed-without-system-record/196813)._
