]> git.mxchange.org Git - friendica.git/commitdiff
new param getUserObjects to avoid retransmitting the whole user info objects
authorMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 17:38:15 +0000 (19:38 +0200)
committerMax Weller <igitt@max-weller.de>
Sat, 23 Jun 2012 17:38:15 +0000 (19:38 +0200)
include/api.php

index 78e628386c5de1ea647edc3274c8ee189f3946d0..7466c199aef297df1e9fa285e8a80a32e56c325e 100644 (file)
       } else {
         $d['text'] = $item['title']."\n".html2plain(bbcode($item['body']), 0);
       }
+      if (isset($_GET["getUserObjects"]) && $_GET["getUserObjects"] == "false") {
+        unset($d['sender']); unset($d['recipient']);
+      }
       $ret[]=$d;
                }