Missing migration / sharing a fix

After updating a customer to latest, the customer reported losing the customized email templates for the blocked (now silenced) user.

In order to fix this, we had to run

update translation_overrides set translation_key = 'system_messages.silenced_by_staff.subject_template' where translation_key = 'system_messages.blocked_by_staff.subject_template';
update translation_overrides set translation_key = 'system_messages.silenced_by_staff.text_body_template' where translation_key = 'system_messages.blocked_by_staff.text_body_template';

Maybe it’s handy to add this as a migration? (first check if there is no existing silenced_by key already)

6 Likes

Added the migration via:

https://github.com/discourse/discourse/commit/5ca558c7c5cd8c38d647b90f944a0caaad1836a1

Thanks for bringing this in our notice @RGJ :+1:

7 Likes

This topic was automatically closed after 23 hours. New replies are no longer allowed.