Providing the uri-id to "convert" when possible

This commit is contained in:
Michael 2021-07-06 12:34:48 +00:00
parent 098cd543ea
commit 37a76e70ef
5 changed files with 9 additions and 9 deletions

View file

@ -1109,7 +1109,7 @@ class Feed
$body = OStatus::formatPicturePost($item['body'], $item['uri-id']);
$body = BBCode::convert($body, false, BBCode::OSTATUS);
$body = BBCode::convert($body, false, BBCode::OSTATUS, false, $item['uri-id']);
XML::addElement($doc, $entry, "content", $body, ["type" => "html"]);
@ -1186,7 +1186,7 @@ class Feed
private static function getTitle(array $item)
{
if ($item['title'] != '') {
return BBCode::convert($item['title'], false, BBCode::OSTATUS);
return BBCode::convert($item['title'], false, BBCode::OSTATUS, false, $item['uri-id']);
}
// Fetch information about the post