0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/automation/test
Régis Hanol a94a001c64
DEV: Remove defunct "Encrypts PM if available" option from automation (#36973)
The "Encrypts PM if available" checkbox in automation script options was
a leftover 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
2026-01-08 11:01:49 +01:00
..
javascripts/integration/components DEV: Remove defunct "Encrypts PM if available" option from automation (#36973) 2026-01-08 11:01:49 +01:00