mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 15:22:27 +08:00

Prior to this fix trashed channels would still prevent a channel with the same slug to be created. This commit generates a new slug on trash and frees the slug for future usage. The format used for the slug is: `YYYYMMDD-HHMM-OLD_SLUG-deleted` truncated to the max length of a channel name.