aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Weller <igitt@max-weller.de>2012-06-23 19:38:15 +0200
committerMax Weller <igitt@max-weller.de>2012-06-23 19:38:15 +0200
commit9d462c6b6a2d0b2eb859781d5de26f6a2275536b (patch)
tree9f01b549b9e41881cf93da26c5369e4c3844c3bc
parent2c992c5969b44dce24c638af32879eac9e55f719 (diff)
downloadvolse-hubzilla-9d462c6b6a2d0b2eb859781d5de26f6a2275536b.tar.gz
volse-hubzilla-9d462c6b6a2d0b2eb859781d5de26f6a2275536b.tar.bz2
volse-hubzilla-9d462c6b6a2d0b2eb859781d5de26f6a2275536b.zip
new param getUserObjects to avoid retransmitting the whole user info objects
-rw-r--r--include/api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index 78e628386..7466c199a 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;
}