diff --git a/app/services/group_message.rb b/app/services/group_message.rb index 35b9bf5c19e..16e18ddbb87 100644 --- a/app/services/group_message.rb +++ b/app/services/group_message.rb @@ -28,12 +28,14 @@ class GroupMessage def create unless sent_recently? - post = PostCreator.create( Discourse.system_user, - target_group_names: [@group_name], - archetype: Archetype.private_message, - subtype: TopicSubtype.system_message, - title: I18n.t("system_messages.#{@message_type}.subject_template", message_params), - raw: I18n.t("system_messages.#{@message_type}.text_body_template", message_params) ) + post = PostCreator.create( + Discourse.system_user, + target_group_names: [@group_name], + archetype: Archetype.private_message, + subtype: TopicSubtype.system_message, + title: I18n.t("system_messages.#{@message_type}.subject_template", message_params), + raw: I18n.t("system_messages.#{@message_type}.text_body_template", message_params) + ) remember_message_sent post else @@ -43,7 +45,7 @@ class GroupMessage def message_params @message_params ||= begin - h = {base_url: Discourse.base_url}.merge(@opts[:message_params]||{}) + h = { base_url: Discourse.base_url }.merge(@opts[:message_params] || {}) if @opts[:user] h.merge!({ username: @opts[:user].username, diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 78eb65ffcf2..f4192aaaef7 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -1334,7 +1334,7 @@ en: The email encoding was unknown or not supported. Try again with UTF-8 plain text. email_reject_post_error: - subject_template: "Email issue -- posting error" + subject_template: "Email issue -- Posting error" text_body_template: | We're sorry, but your email message to %{destination} didn't work. @@ -1347,6 +1347,13 @@ en: The provided reply key is invalid or unknown, so we don't know what this email is in reply to. Contact a staff member. + email_error_notification: + subject_template: "Email issue -- POP authentication error" + text_body_template: | + There has been an authentication error while polling mails from the POP server. + + Please make sure you have properly configured the POP credentials in [the site settings](%{base_url}/admin/site_settings/category/email). + too_many_spam_flags: subject_template: "New account blocked" text_body_template: |