diff options
author | Max Weller <igitt@max-weller.de> | 2012-06-23 19:35:01 +0200 |
---|---|---|
committer | Max Weller <igitt@max-weller.de> | 2012-06-23 19:35:01 +0200 |
commit | 2c992c5969b44dce24c638af32879eac9e55f719 (patch) | |
tree | 6cec4d49d918c7c67aadd92a72e44bbf760e57a4 /include/api.php | |
parent | f45c881815d1e3ab2cc494f47a836f18044aae5b (diff) | |
download | volse-hubzilla-2c992c5969b44dce24c638af32879eac9e55f719.tar.gz volse-hubzilla-2c992c5969b44dce24c638af32879eac9e55f719.tar.bz2 volse-hubzilla-2c992c5969b44dce24c638af32879eac9e55f719.zip |
bugfix
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/api.php b/include/api.php index e22bcc9e9..78e628386 100644 --- a/include/api.php +++ b/include/api.php @@ -1590,7 +1590,7 @@ $sender = $user_info; } - $ret[]=Array( + $d=Array( 'id' => $item['id'], 'created_at'=> api_date($item['created']), 'sender_id'=> $sender['id'] , @@ -1603,13 +1603,14 @@ ); //don't send title to regular StatusNET requests to avoid confusing these apps if (isset($_GET["getText"])) { - $ret['title'] = $item['title'] ; + $d['title'] = $item['title'] ; if ($_GET["getText"] == "true") { - $ret['text'] = html2plain(bbcode($item['body']), 0); + $d['text'] = html2plain(bbcode($item['body']), 0); } } else { - $ret['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0); + $d['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0); } + $ret[]=$d; } |