From 38f383a1e07d67fc8ea09e7ad9afac2d759a60e7 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Wed, 11 Oct 2023 19:14:19 -0300 Subject: [PATCH] FIX: Allowlist topic custom field used by AI Bot (#250) --- lib/modules/ai_bot/entry_point.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/modules/ai_bot/entry_point.rb b/lib/modules/ai_bot/entry_point.rb index e9117c7c..3ab557c7 100644 --- a/lib/modules/ai_bot/entry_point.rb +++ b/lib/modules/ai_bot/entry_point.rb @@ -125,6 +125,10 @@ module DiscourseAi end end end + + if plugin.respond_to?(:register_editable_topic_custom_field) + plugin.register_editable_topic_custom_field(:ai_persona) + end end end end