1
1
Fork 0

Use a more simple HTML for API output

This commit is contained in:
Michael 2018-02-10 13:33:15 +00:00
parent 8b557c3157
commit 30cfca40d8
2 changed files with 2 additions and 2 deletions

View file

@ -2647,7 +2647,7 @@ function api_convert_item($item)
$statustext = substr($statustext, 0, 1000)."... \n".$item["plink"]; $statustext = substr($statustext, 0, 1000)."... \n".$item["plink"];
} }
$statushtml = trim(bbcode($body, false, false)); $statushtml = bbcode(api_clean_attachments($body), false, false);
// Workaround for clients with limited HTML parser functionality // Workaround for clients with limited HTML parser functionality
$search = ["<br>", "<blockquote>", "</blockquote>", $search = ["<br>", "<blockquote>", "</blockquote>",

View file

@ -2412,7 +2412,7 @@ class DFRN
// Is there an existing item? // Is there an existing item?
if (DBM::is_result($current) && !self::isEditedTimestampNewer($current[0], $item)) { if (DBM::is_result($current) && !self::isEditedTimestampNewer($current[0], $item)) {
logger("Item ".$item["uri"]." already existed in this version.", LOGGER_DEBUG); logger("Item ".$item["uri"]." (".$item['edited'].") already existed.", LOGGER_DEBUG);
return; return;
} }