diff --git a/app/serializers/ai_topic_summary_serializer.rb b/app/serializers/ai_topic_summary_serializer.rb index 39d3abff..738f843e 100644 --- a/app/serializers/ai_topic_summary_serializer.rb +++ b/app/serializers/ai_topic_summary_serializer.rb @@ -1,7 +1,12 @@ # frozen_string_literal: true class AiTopicSummarySerializer < ApplicationSerializer - attributes :summarized_text, :algorithm, :outdated, :can_regenerate, :new_posts_since_summary + attributes :summarized_text, + :algorithm, + :outdated, + :can_regenerate, + :new_posts_since_summary, + :updated_at def can_regenerate scope.can_request_summary? diff --git a/assets/javascripts/discourse/connectors/topic-map-expanded-after/ai-summary-box.gjs b/assets/javascripts/discourse/connectors/topic-map-expanded-after/ai-summary-box.gjs index 9727c8a4..69b2ac3e 100644 --- a/assets/javascripts/discourse/connectors/topic-map-expanded-after/ai-summary-box.gjs +++ b/assets/javascripts/discourse/connectors/topic-map-expanded-after/ai-summary-box.gjs @@ -123,7 +123,7 @@ export default class AiSummaryBox extends Component { }) .then(() => { if (update.done) { - this.summarizedOn = shortDateNoYear(topicSummary.summarized_on); + this.summarizedOn = shortDateNoYear(topicSummary.updated_at); this.summarizedBy = topicSummary.algorithm; this.newPostsSinceSummary = topicSummary.new_posts_since_summary; this.outdated = topicSummary.outdated;