From a41085fe00dac14b46e88071a2c8579a976ebdee Mon Sep 17 00:00:00 2001 From: "Stanko K.R." Date: Wed, 12 Nov 2025 12:28:22 +0100 Subject: [PATCH] Show full comment, description or title --- app/models/search/result.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/search/result.rb b/app/models/search/result.rb index d90411bd5..68140a6cd 100644 --- a/app/models/search/result.rb +++ b/app/models/search/result.rb @@ -4,15 +4,15 @@ class Search::Result < ApplicationRecord belongs_to :comment, foreign_key: :comment_id, optional: true def card_title - highlight(card_title_in_database, show: :full) + highlight(card.title, show: :full) if card_id end def card_description - highlight(card_description_in_database, show: :snippet) + highlight(card.description.to_plain_text, show: :snippet) if card_id end def comment_body - highlight(comment_body_in_database, show: :snippet) + highlight(comment.body.to_plain_text, show: :snippet) if comment_id end def source