aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-08 19:34:11 -0700
committerredmatrix <git@macgirvin.com>2016-06-08 19:34:11 -0700
commit40bba93a310fab27fb14a9b6a55bcaab1530eba2 (patch)
tree6881ae289c01493ecc041f0a1770312d27dc6170 /include
parente46e7002a8945f3156b4c4dcfdedb57316d94ba9 (diff)
downloadvolse-hubzilla-40bba93a310fab27fb14a9b6a55bcaab1530eba2.tar.gz
volse-hubzilla-40bba93a310fab27fb14a9b6a55bcaab1530eba2.tar.bz2
volse-hubzilla-40bba93a310fab27fb14a9b6a55bcaab1530eba2.zip
potential fix to hubzilla-addons issue 16
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));