]> git.mxchange.org Git - friendica.git/commitdiff
Apply correct title encoding to all cases
authorAlexandre Alapetite <alexandre@alapetite.fr>
Sat, 17 Nov 2018 00:30:53 +0000 (01:30 +0100)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Sat, 17 Nov 2018 00:30:53 +0000 (01:30 +0100)
src/Protocol/OStatus.php

index 557277fe81dc5b181f39420b7379848b899183ef..5f5066d75c3bc7489151a6fe9aea091796c14163 100644 (file)
@@ -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']);