Remove RTL Override character from display names to show in notifications

- It was causing the notification message to be unreadable
This commit is contained in:
Hypolite Petovan 2022-11-10 10:42:21 -05:00
parent 71ab9e13f2
commit 256c8ab170

View file

@ -79,6 +79,10 @@ class FormattedNavNotification extends BaseFactory
{
$contact_photo = Contact::getAvatarUrlForUrl($contact_url, $this->userSession->getLocalUserId(), Proxy::SIZE_MICRO);
// Removing the RTL Override character to prevent a garbled notification message
// See https://github.com/friendica/friendica/issues/12084
$contact_name = str_replace("\xE2\x80\xAE", '', $contact_name);
$dateMySQL = $date->format(DateTimeFormat::MYSQL);
$templateNotify = [