Fix incorrect author relationship name

This commit is contained in:
Karina Kwiatek 2022-12-24 20:20:13 +00:00
parent 16eb27cc2b
commit 185c454da0
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Inbox < ApplicationRecord
type: :inbox,
title: I18n.t(
"frontend.push_notifications.inbox.title",
user: question.author_is_anonymous ? user.profile.display_name : question.author.profile.safe_name
user: question.author_is_anonymous ? user.profile.display_name : question.user.profile.safe_name
),
body: question.content
}