mirror of
https://github.com/friendica/friendica
synced 2024-11-10 20:22:54 +00:00
Merge pull request #3504 from gerhard6380/patch-1
API: link to original page for feed posts
This commit is contained in:
commit
66c6c37921
1 changed files with 5 additions and 0 deletions
|
@ -2289,6 +2289,11 @@ $called_api = null;
|
||||||
$statushtml = "<h4>" . bbcode($item['title']) . "</h4>\n" . $statushtml;
|
$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);
|
$entities = api_get_entitities($statustext, $body);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Reference in a new issue