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)
This commit is contained in:
Alexandre Alapetite 2018-11-16 23:52:36 +01:00
parent 460c257cb4
commit af38d22d38

View file

@ -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']);