From dd65c5d150d0732b8b8c7a773665e73946d37a3a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 17 Nov 2018 01:30:53 +0100 Subject: [PATCH] Apply correct title encoding to all cases --- src/Protocol/OStatus.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 557277fe8..5f5066d75 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -1945,11 +1945,7 @@ class OStatus } XML::addElement($doc, $entry, "id", $item["uri"]); - if ($feed_mode) { - XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8')); - } else { - XML::addElement($doc, $entry, "title", $title); - } + XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8')); $body = self::formatPicturePost($item['body']);