diff --git a/plugins/discourse-narrative-bot/config/locales/server.en.yml b/plugins/discourse-narrative-bot/config/locales/server.en.yml index 74cb2d5f047..90d776a7c2f 100644 --- a/plugins/discourse-narrative-bot/config/locales/server.en.yml +++ b/plugins/discourse-narrative-bot/config/locales/server.en.yml @@ -308,7 +308,7 @@ en: Go ahead and **flag this post** and select **It's Inappropriate** as the reason! reply: |- - [Our staff](%{base_uri}/groups/staff) will be privately notified about your flag. If enough community members flag a post, it will also be automatically hidden as a precaution. (Since I didn’t actually write a nasty post :angel:, I’ve gone ahead and removed the flag for now.) + [Our staff](%{group_url}) will be privately notified about your flag. If enough community members flag a post, it will also be automatically hidden as a precaution. (Since I didn’t actually write a nasty post :angel:, I’ve gone ahead and removed the flag for now.) not_found: |- Oh no, my nasty post hasn’t been flagged as inappropriate yet. :worried: Can you flag it as inappropriate using the **flag** ? Don’t forget to use the show more button to reveal more actions for each post. diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/new_user_narrative.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/new_user_narrative.rb index b601124f84f..918ed69e0a1 100644 --- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/new_user_narrative.rb +++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/new_user_narrative.rb @@ -568,7 +568,7 @@ module DiscourseNarrativeBot return unless @post.user.id == -2 raw = <<~MD - #{I18n.t("#{I18N_KEY}.flag.reply", i18n_post_args)} + #{I18n.t("#{I18N_KEY}.flag.reply", i18n_post_args(group_url: Group.find(Group::AUTO_GROUPS[:staff]).full_url))} #{instance_eval(&@next_instructions)} MD diff --git a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/new_user_narrative_spec.rb b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/new_user_narrative_spec.rb index 1bd32f8fe13..2fd1ed52605 100644 --- a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/new_user_narrative_spec.rb +++ b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/new_user_narrative_spec.rb @@ -1144,7 +1144,13 @@ RSpec.describe DiscourseNarrativeBot::NewUserNarrative do new_post = Post.last expected_raw = <<~RAW - #{I18n.t("discourse_narrative_bot.new_user_narrative.flag.reply", base_uri: "")} + #{ + I18n.t( + "discourse_narrative_bot.new_user_narrative.flag.reply", + base_uri: "", + group_url: Group.find(Group::AUTO_GROUPS[:staff]).full_url, + ) + } #{I18n.t("discourse_narrative_bot.new_user_narrative.search.instructions", base_uri: "")} RAW