MakeTree calculated Info locally for historical reasons, and the results were consistent with the dataService.Info call but calculated differently. That change fixes that, ensuring that Info is requested in the same manner.
181 lines
5.4 KiB
JSON
181 lines
5.4 KiB
JSON
{
|
|
"comments": [{
|
|
"comment": {
|
|
"id": "1",
|
|
"pid": "",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:46:01Z"
|
|
},
|
|
"replies": [{
|
|
"comment": {
|
|
"id": "11",
|
|
"pid": "1",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:46:11Z"
|
|
},
|
|
"replies": [{
|
|
"comment": {
|
|
"id": "111",
|
|
"pid": "11",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:46:12Z"
|
|
}
|
|
}]
|
|
}]
|
|
}, {
|
|
"comment": {
|
|
"id": "2",
|
|
"pid": "",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:47:01Z"
|
|
},
|
|
"replies": [{
|
|
"comment": {
|
|
"id": "22",
|
|
"pid": "2",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:47:02Z"
|
|
},
|
|
"replies": [{
|
|
"comment": {
|
|
"id": "223",
|
|
"pid": "22",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "0001-01-01T00:00:00Z",
|
|
"delete": true
|
|
},
|
|
"replies": [{
|
|
"comment": {
|
|
"id": "2241",
|
|
"pid": "223",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:47:05Z"
|
|
}
|
|
}]
|
|
}, {
|
|
"comment": {
|
|
"id": "221",
|
|
"pid": "22",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:47:03Z"
|
|
}
|
|
}, {
|
|
"comment": {
|
|
"id": "222",
|
|
"pid": "22",
|
|
"text": "",
|
|
"user": {
|
|
"name": "",
|
|
"id": "",
|
|
"picture": "",
|
|
"admin": false
|
|
},
|
|
"locator": {
|
|
"site": "site",
|
|
"url": "url"
|
|
},
|
|
"score": 0,
|
|
"votes": null,
|
|
"time": "2017-12-25T19:47:04Z"
|
|
}
|
|
}]
|
|
}]
|
|
}]
|
|
}
|