chore: Change the notification text for mention notification type (#2534)
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#
|
||||
|
||||
class Notification < ApplicationRecord
|
||||
include MessageFormatHelper
|
||||
belongs_to :account
|
||||
belongs_to :user
|
||||
|
||||
@@ -73,7 +74,7 @@ class Notification < ApplicationRecord
|
||||
content: primary_actor.content&.truncate_words(10)
|
||||
)
|
||||
when 'conversation_mention'
|
||||
I18n.t('notifications.notification_title.conversation_mention', display_id: conversation.display_id, name: secondary_actor.name)
|
||||
"[##{conversation.display_id}] #{transform_user_mention_content primary_actor.content}"
|
||||
else
|
||||
''
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user