Fix missing anon names from notification text

This commit is contained in:
Karina Kwiatek 2022-12-25 23:44:01 +00:00
parent 91d3db4034
commit a67c26d985
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,11 @@ class Inbox < ApplicationRecord
type: :inbox, type: :inbox,
title: I18n.t( title: I18n.t(
"frontend.push_notifications.inbox.title", "frontend.push_notifications.inbox.title",
user: question.author_is_anonymous ? user.profile.display_name : question.user.profile.safe_name user: if question.author_is_anonymous
user.profile.anon_display_name || APP_CONFIG["anonymous_name"]
else
question.user.profile.safe_name
end
), ),
body: question.content body: question.content
} }