aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-09 09:10:46 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-09 09:10:46 +0200
commit9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd (patch)
tree4170ca20120a23e40bb98c6d6ac57a59b827dc28 /include
parent4234c9a1946d805259d3fea916844710863acd5d (diff)
parent11045b92fb2a5af504a8d6cfba1f0fe67107e847 (diff)
downloadvolse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.tar.gz
volse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.tar.bz2
volse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.zip
Merge branch 'sabre32' of https://github.com/redmatrix/hubzilla into sabre32
Diffstat (limited to 'include')
-rw-r--r--include/api.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index f0d886d9b..be525f7e9 100644
--- a/include/api.php
+++ b/include/api.php
@@ -1904,10 +1904,15 @@ require_once('include/api_auth.php');
$ret = array();
+ $x = array('items' => $r,'api_user' => api_user(),'user_info' => $user_info);
+ call_hooks('api_format_items',$x);
+ $r = $x['items'];
+
if(! $r)
return $ret;
foreach($r as $item) {
+
localize_item($item);
$status_user = (($item['author_xchan']==$user_info['guid'])?$user_info: api_item_get_user($a,$item));