activity streams json 'count' => 'totalItems'

This commit is contained in:
Evan Prodromou 2011-12-31 02:01:51 -08:00
parent 70aada690b
commit 6ca729803b

View File

@ -168,7 +168,7 @@ class ActivityStreamJSONDocument extends JSONActivityCollection
$this->doc['generator'] = 'StatusNet ' . STATUSNET_VERSION; // extension $this->doc['generator'] = 'StatusNet ' . STATUSNET_VERSION; // extension
$this->doc['title'] = $this->title; $this->doc['title'] = $this->title;
$this->doc['url'] = $this->url; $this->doc['url'] = $this->url;
$this->doc['count'] = $this->count; $this->doc['totalItems'] = $this->count;
$this->doc['items'] = $this->items; $this->doc['items'] = $this->items;
$this->doc['links'] = $this->links; // extension $this->doc['links'] = $this->links; // extension
return json_encode(array_filter($this->doc)); // filter out empty elements return json_encode(array_filter($this->doc)); // filter out empty elements