From 185c454da0314c5186e3aa0df7a673727ce2629e Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 24 Dec 2022 20:20:13 +0000 Subject: [PATCH] Fix incorrect author relationship name --- app/models/inbox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/inbox.rb b/app/models/inbox.rb index fde7b26b..0e7e0327 100644 --- a/app/models/inbox.rb +++ b/app/models/inbox.rb @@ -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 }