https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5ff4a8
)
API: link to original page for feed posts
author
gerhard6380
<gerhard6380@users.noreply.github.com>
Wed, 31 May 2017 00:24:09 +0000
(
02:24
+0200)
committer
GitHub
<noreply@github.com>
Wed, 31 May 2017 00:24:09 +0000
(
02:24
+0200)
link to original page added to html output of feed posts if body is empty
include/api.php
patch
|
blob
|
history
diff --git
a/include/api.php
b/include/api.php
index
caf316d
..
d8864a5
100644
(file)
--- a/
include/api.php
+++ b/
include/api.php
@@
-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(