mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Merge pull request #4434 from annando/api-no-attachments
Use a more simple HTML for API output
This commit is contained in:
commit
d3034b703a
2 changed files with 2 additions and 2 deletions
|
@ -2647,7 +2647,7 @@ function api_convert_item($item)
|
|||
$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
|
||||
$search = ["<br>", "<blockquote>", "</blockquote>",
|
||||
|
|
|
@ -2412,7 +2412,7 @@ class DFRN
|
|||
|
||||
// Is there an existing 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue