mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 13:12:26 +00:00
e29b8173bf
The loop in parser.js assumed that there was always a heading before any comments (not counting the page title, only section headings). Bug: T243869 Change-Id: I3a0bb06716e75d4a17e25c40748673a071ee5f30
26 lines
422 B
JSON
26 lines
422 B
JSON
[
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0",
|
|
"0"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-01-22T23:19:00.000Z",
|
|
"author": "Matma Rex",
|
|
"range": [
|
|
"0/1/0",
|
|
"0/1/2/29"
|
|
],
|
|
"level": 1,
|
|
"id": "Matma Rex|2020-01-22T23:19:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|