From 9d462c6b6a2d0b2eb859781d5de26f6a2275536b Mon Sep 17 00:00:00 2001 From: Max Weller Date: Sat, 23 Jun 2012 19:38:15 +0200 Subject: [PATCH] new param getUserObjects to avoid retransmitting the whole user info objects --- include/api.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5