diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb index 71349219347..a1164f102f9 100644 --- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb +++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb @@ -28,7 +28,8 @@ module DiscourseNarrativeBot else PostCreator.create!(self.discobot_user, { post_alert_options: defaut_post_alert_opts, - raw: raw + raw: raw, + skip_validations: true }.merge(opts)) end end diff --git a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/advanced_user_narrative_spec.rb b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/advanced_user_narrative_spec.rb index 4fca6acb64c..d9ea4c9e2ed 100644 --- a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/advanced_user_narrative_spec.rb +++ b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/advanced_user_narrative_spec.rb @@ -131,7 +131,6 @@ RSpec.describe DiscourseNarrativeBot::AdvancedUserNarrative do narrative.reset_bot(user, other_post) expect(Topic.last.title).to eq(I18n.t('discourse_narrative_bot.advanced_user_narrative.title')) - expect(new_post.topic.id).to_not eq(topic.id) end end