Remove RTL Override character from display names to show in notifications

- It was causing the notification message to be unreadable
develop
Hypolite Petovan 2022-11-10 10:42:21 -05:00
rodzic 71ab9e13f2
commit 256c8ab170
1 zmienionych plików z 4 dodań i 0 usunięć
src/Navigation/Notifications/Factory

Wyświetl plik

@ -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 = [