From: Hypolite Petovan Date: Thu, 10 Nov 2022 15:42:21 +0000 (-0500) Subject: Remove RTL Override character from display names to show in notifications X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=256c8ab17054da402aaca8de38573f57f8ba181f;p=friendica.git Remove RTL Override character from display names to show in notifications - It was causing the notification message to be unreadable --- diff --git a/src/Navigation/Notifications/Factory/FormattedNavNotification.php b/src/Navigation/Notifications/Factory/FormattedNavNotification.php index cfb798ac72..2b1360eaa4 100644 --- a/src/Navigation/Notifications/Factory/FormattedNavNotification.php +++ b/src/Navigation/Notifications/Factory/FormattedNavNotification.php @@ -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 = [