From bbddea03e973c7cb2c50d79723db93cdf368773b Mon Sep 17 00:00:00 2001 From: gerhard6380 Date: Wed, 31 May 2017 02:24:09 +0200 Subject: [PATCH] API: link to original page for feed posts link to original page added to html output of feed posts if body is empty --- include/api.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/api.php b/include/api.php index caf316d76..d8864a5ab 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(