aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-09 09:09:13 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-09 09:09:13 +0200
commit11045b92fb2a5af504a8d6cfba1f0fe67107e847 (patch)
tree4170ca20120a23e40bb98c6d6ac57a59b827dc28 /include/api.php
parent655290b022f0443a121790ef7f0c1d4ddeecb289 (diff)
parent2ad5010dc3f2f8d077a3228915d28a3e256f6e13 (diff)
downloadvolse-hubzilla-11045b92fb2a5af504a8d6cfba1f0fe67107e847.tar.gz
volse-hubzilla-11045b92fb2a5af504a8d6cfba1f0fe67107e847.tar.bz2
volse-hubzilla-11045b92fb2a5af504a8d6cfba1f0fe67107e847.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/api.php')
-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));