mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: Narration Bot now gets site setting for automatic post deletion (#7432)
This commit is contained in:
@ -366,7 +366,7 @@ en:
|
|||||||
reply: |-
|
reply: |-
|
||||||
Phew, that was a close one! Thanks for fixing that :wink:
|
Phew, that was a close one! Thanks for fixing that :wink:
|
||||||
|
|
||||||
Do note that you only have 24 hours to undelete a post.
|
Do note that you only have %{deletion_after} hour(s) to undelete a post.
|
||||||
|
|
||||||
category_hashtag:
|
category_hashtag:
|
||||||
instructions: |-
|
instructions: |-
|
||||||
|
@ -249,7 +249,7 @@ module DiscourseNarrativeBot
|
|||||||
fake_delay
|
fake_delay
|
||||||
|
|
||||||
raw = <<~RAW
|
raw = <<~RAW
|
||||||
#{I18n.t("#{I18N_KEY}.recover.reply", i18n_post_args)}
|
#{I18n.t("#{I18N_KEY}.recover.reply", i18n_post_args(deletion_after: SiteSetting.delete_removed_posts_after))}
|
||||||
|
|
||||||
#{instance_eval(&@next_instructions)}
|
#{instance_eval(&@next_instructions)}
|
||||||
RAW
|
RAW
|
||||||
|
@ -390,7 +390,7 @@ RSpec.describe DiscourseNarrativeBot::AdvancedUserNarrative do
|
|||||||
.to change { Post.count }.by(1)
|
.to change { Post.count }.by(1)
|
||||||
|
|
||||||
expected_raw = <<~RAW
|
expected_raw = <<~RAW
|
||||||
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.recover.reply', base_uri: '')}
|
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.recover.reply', base_uri: '', deletion_after: SiteSetting.delete_removed_posts_after)}
|
||||||
|
|
||||||
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.category_hashtag.instructions', category: "#a:b", base_uri: '')}
|
#{I18n.t('discourse_narrative_bot.advanced_user_narrative.category_hashtag.instructions', category: "#a:b", base_uri: '')}
|
||||||
RAW
|
RAW
|
||||||
|
Reference in New Issue
Block a user