From: Alexandre Alapetite Date: Fri, 16 Nov 2018 22:52:36 +0000 (+0100) Subject: Fix ATOM feed title encoding X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af38d22d38885522c617eb238ad966772e79d686;p=friendica.git Fix ATOM feed title encoding Was HTML-encoded instead of plain Unicode. Fixed only for feed_mode. Probably wrong as well for non_feed mode (not sure how to test) --- diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index d656246644..557277fe81 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -1945,7 +1945,11 @@ class OStatus } XML::addElement($doc, $entry, "id", $item["uri"]); - XML::addElement($doc, $entry, "title", $title); + if ($feed_mode) { + XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8')); + } else { + XML::addElement($doc, $entry, "title", $title); + } $body = self::formatPicturePost($item['body']);