openphoto/frontend — Issue #336: Get tags: count, countPrivate and countPublic
Author: patricksan
Created: 2011-11-28 15:27:17+00:00
State: open

In my frontend (http://psantana.openphoto.me) I have a stranger return of a list of tags.

URL: http://psantana.openphoto.me/tags/list.json

All my pictures are public; but the return has _count = 0_ and _countPrivate = countPublic_.

In this case, this should be the expected:
**count = countPrivate + countPublic
countPrivate = 0 (in all cases)**

See the details:

```json

{"message":"Tags for the user","code":200,"result":[
{"id":" Traveling","count":"0","countPrivate":"1","countPublic":"1"},
{"id":"2011","count":"0","countPrivate":"42","countPublic":"42"},
{"id":"August","count":"0","countPrivate":"1","countPublic":"1"},
{"id":"Belgium","count":"0","countPrivate":"1","countPublic":"1"},
{"id":"Family","count":"0","countPrivate":"1","countPublic":"1"},
{"id":"March","count":"0","countPrivate":"5","countPublic":"5"},
{"id":"November","count":"0","countPrivate":"36","countPublic":"36"},
{"id":"['belgium']","count":"0","countPrivate":"1","countPublic":"1"},
{"id":"birthday","count":"0","countPrivate":"22","countPublic":"22"},
{"id":"christian","count":"0","countPrivate":"22","countPublic":"22"}
]}

```