FIX: Related topics missing after scrolling post stream

This commit is contained in:
Keegan George 2024-11-25 11:43:07 -08:00
parent 6c25718a7f
commit d29584c1cc
No known key found for this signature in database
GPG Key ID: 91B40E38537AC000

View File

@ -38,7 +38,7 @@ module DiscourseAi
:related_topics,
include_condition: -> { SiteSetting.ai_embeddings_semantic_related_topics_enabled },
) do
if object.next_page.nil? && !object.topic.private_message?
if !object.topic.private_message?
object.related_topics.topics.map do |t|
SuggestedTopicSerializer.new(t, scope: scope, root: false)
end