mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:39:52 +01:00
Merge pull request #953 from Retrospring/fix/truncate-question-text-for-notifications
Shorten question text in notifications to short question length
This commit is contained in:
commit
e765c23ec8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Inbox < ApplicationRecord
|
|||
end
|
||||
),
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue