]> git.mxchange.org Git - friendica.git/commitdiff
bugfix
authorMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 17:35:01 +0000 (19:35 +0200)
committerMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 17:35:01 +0000 (19:35 +0200)
include/api.php

index e22bcc9e9ade42cf59f90fccb8b2ee03f57845ba..78e628386c5de1ea647edc3274c8ee189f3946d0 100644 (file)
                                        $sender = $user_info;
                        }
                                
-                       $ret[]=Array(
+                       $d=Array(
                                'id' => $item['id'],
                                'created_at'=> api_date($item['created']),
                                'sender_id'=> $sender['id'] ,
                        );
       //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;
                }