From: Max Weller Date: Sat, 23 Jun 2012 17:38:15 +0000 (+0200) Subject: new param getUserObjects to avoid retransmitting the whole user info objects X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d462c6b6a2d0b2eb859781d5de26f6a2275536b;p=friendica.git new param getUserObjects to avoid retransmitting the whole user info objects --- diff --git a/include/api.php b/include/api.php index 78e628386c..7466c199ae 100644 --- a/include/api.php +++ b/include/api.php @@ -1610,6 +1610,9 @@ } 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; }