Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit fa195a4

Browse files
committed
DEV: Add dates
1 parent 9c88dbc commit fa195a4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/controllers/discourse_ai/sentiment/sentiment_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def posts
4141
p.cooked as post_cooked,
4242
p.user_id,
4343
p.post_number,
44+
p.created_at AS created_at,
4445
u.username,
4546
u.name,
4647
u.uploaded_avatar_id,

app/serializers/ai_sentiment_post_serializer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class AiSentimentPostSerializer < ApplicationSerializer
1111
:excerpt,
1212
:sentiment,
1313
:truncated,
14-
:category
14+
:category,
15+
:created_at
1516

1617
def avatar_template
1718
User.avatar_template(object.username, object.uploaded_avatar_id)

0 commit comments

Comments
 (0)