Interpolation key "site_name" required in automated messages

I have recently gone over to update some of the automated messages that are sent out regarding flags and blocks, and I have found that I cannot remove the %{site_name} from them without getting the error: interpolation key(s) are missing: “site_name”.

The messages in question are:
system_messages.too_many_tl3_flags.text_body_template
system_messages.too_many_spam_flags.text_body_template
system_messages.post_hidden.text_body_template
system_messages.blocked_by_staff.text_body_template
system_messages.unblocked.text_body_template
And perhaps more, but these are the ones I have tried.

All the messages state “This is an automated message from %{site_name} to let you know that…” and are sent as PMs from the site system username.
In these cases I think stating that the message is from the site is unnecessary fluff. People know what site they are on, and shouldn’t need to be told it.

1 Like

I haven’t tried, but does it work to hide the required %{site_name} bit in an html comment?

This is an automated message <!-- %{site_name} --> to let you know that…
5 Likes

This topic was automatically closed after 2530 days. New replies are no longer allowed.