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

Commit f7c475a

Browse files
committed
DEV: Only truncate when text is long
1 parent fa195a4 commit f7c475a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/serializers/ai_sentiment_post_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def excerpt
2323
end
2424

2525
def truncated
26-
true
26+
object.post_cooked.length > SiteSetting.post_excerpt_maxlength
2727
end
2828

2929
def category

0 commit comments

Comments
 (0)