mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 11:02:57 +00:00
dc8b4e8d4f
For topic subscriptions, further restrict this to comments in the same thread. Bug: T302014 Change-Id: Ifba218871122901031a891034e709b886fc406da
55 lines
785 B
JSON
55 lines
785 B
JSON
[
|
|
{
|
|
"thread": {
|
|
"type": "heading",
|
|
"id": "Heading1",
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"id": "Eve1",
|
|
"author": "Eve",
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"id": "Bob1",
|
|
"author": "Bob",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"author": "Bob",
|
|
"id": "Bob2",
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"id": "Alice1",
|
|
"author": "Alice",
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"id": "Eve2",
|
|
"author": "Eve",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expectedAuthorsBelow": [
|
|
"Alice",
|
|
"Bob",
|
|
"Eve"
|
|
],
|
|
"expectedThreadItemIdsBelow": [
|
|
"Eve1",
|
|
"Bob1",
|
|
"Bob2",
|
|
"Alice1",
|
|
"Eve2"
|
|
]
|
|
}
|
|
]
|