From: gerhard6380 Date: Wed, 31 May 2017 00:24:09 +0000 (+0200) Subject: API: link to original page for feed posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bbddea03e973c7cb2c50d79723db93cdf368773b;p=friendica.git API: link to original page for feed posts link to original page added to html output of feed posts if body is empty --- diff --git a/include/api.php b/include/api.php index caf316d76a..d8864a5ab3 100644 --- a/include/api.php +++ b/include/api.php @@ -2289,6 +2289,11 @@ $called_api = null; $statushtml = "

" . bbcode($item['title']) . "

\n" . $statushtml; } + // feeds without body should contain the link ++ if (($item['network'] == NETWORK_FEED) && (strlen($item['body']) == 0)) { ++ $statushtml .= bbcode($item['plink']); ++ } + $entities = api_get_entitities($statustext, $body); return array(