From: Michael Date: Sat, 10 Feb 2018 13:33:15 +0000 (+0000) Subject: Use a more simple HTML for API output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30cfca40d89e6e6c3712df4de71061dff767f6ca;p=friendica.git Use a more simple HTML for API output --- diff --git a/include/api.php b/include/api.php index 41631567f3..e0ffef6bb6 100644 --- a/include/api.php +++ b/include/api.php @@ -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 = ["
", "
", "
", diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index ca88148461..ab778ff9fe 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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; }