main ← remove-prefers-encrypt-from-automation
opened 10:32AM - 06 Jan 26 UTC
The "Encrypts PM if available" checkbox in automation script options was a lefto…ver from the discourse-encrypt plugin, which was archived almost a year ago. Since `EncryptedPostCreator` no longer exists, the option had no effect - the code always fell back to using the regular `PostCreator`.
This removes all traces of the `prefers_encrypt` feature:
- The checkbox UI in the PM field component
- The `prefers_encrypt` parameter from `Utils.send_pm`
- References in send_pms and gift_exchange scripts
- The column from the pending_pms table (via post-deploy migration)
- Associated translations and tests
The column removal follows the standard two-phase approach: first declaring `ignored_columns` in the model, then dropping the column in a post-deploy migration.
Ref - https://meta.discourse.org/t/-/392664