From 256c8ab17054da402aaca8de38573f57f8ba181f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 10 Nov 2022 10:42:21 -0500 Subject: [PATCH] Remove RTL Override character from display names to show in notifications - It was causing the notification message to be unreadable --- .../Notifications/Factory/FormattedNavNotification.php | 4 ++++ 1 file changed, 4 insertions(+) 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 = [ -- 2.39.5