Shorten question text in notifications to short question length

This commit is contained in:
Karina Kwiatek 2023-01-13 17:30:37 +01:00
parent 7b91c5e225
commit 3dbbed3ef2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Inbox < ApplicationRecord
end end
), ),
icon: question.author_is_anonymous ? "/icons/maskable_icon_x128.png" : question.user.profile_picture.url(:small), icon: question.author_is_anonymous ? "/icons/maskable_icon_x128.png" : question.user.profile_picture.url(:small),
body: question.content body: question.content.truncate(Question::SHORT_QUESTION_MAX_LENGTH)
} }
end end
end end