API: link to original page for feed posts

link to original page added to html output of feed posts if body is empty
This commit is contained in:
gerhard6380 2017-05-31 02:24:09 +02:00 committed by GitHub
parent e5ff4a8463
commit bbddea03e9

View file

@ -2289,6 +2289,11 @@ $called_api = null;
$statushtml = "<h4>" . bbcode($item['title']) . "</h4>\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(