diff --git a/lib/mail.php b/lib/mail.php index 15b2351b43..39714c5fc0 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -687,7 +687,7 @@ function mail_notify_fave(User $rcpt, Profile $sender, Notice $notice) return; } - $bestname = $profile->getBestName(); + $bestname = $sender->getBestName(); common_switch_locale($rcpt->language);