mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 05:10:50 +00:00
d0e4aeaecb
The user interface only allows you to subscribe to level 2 headings. But we would generate events for whatever heading was the closest, If it was e.g. level 3, no one would receive that notification. Now we generate events for the closest level 2 heading, or we don't generate the event at all if there isn't one (if the only headings are of level 3 and below, or level 1, or if the comment is added before the first heading on the page). Bug: T286736 Change-Id: Iae99853070e353ab81c9cc29ef1d53c877adfc66
17 lines
373 B
JSON
17 lines
373 B
JSON
[
|
|
{
|
|
"type": "dt-subscribed-new-comment",
|
|
"title": {},
|
|
"extra": {
|
|
"subscribed-comment-name": "h-X-2020-01-01T00:01:00.000Z",
|
|
"comment-id": "c-Z-2020-01-01T00:04:00.000Z-Y-2020-01-01T00:02:00.000Z",
|
|
"comment-name": "c-Z-2020-01-01T00:04:00.000Z",
|
|
"content": "G.",
|
|
"section-title": "A",
|
|
"revid": null,
|
|
"mentioned-users": []
|
|
},
|
|
"agent": {}
|
|
}
|
|
]
|