Go to file
Bartosz Dziewoński d0e4aeaecb Fix notifications when new comment is under subheading
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
2021-07-24 05:28:10 +02:00
.phan Echo wiring for topic subscriptions 2021-04-06 23:28:28 +02:00
i18n Localisation updates from https://translatewiki.net. 2021-07-22 08:13:08 +02:00
images Add beta feature preference 2020-02-21 15:20:48 +00:00
includes Fix notifications when new comment is under subheading 2021-07-24 05:28:10 +02:00
maintenance Defensive use of dynamic paths in maintenance script 2020-02-20 19:51:07 +01:00
modules Do not teardown newtopictool interface if it was not setup 2021-07-20 22:32:25 +02:00
sql Change DB column types from "string" to "binary" (VARCHAR to VARBINARY in MySQL) 2021-04-28 21:54:48 +00:00
tests Fix notifications when new comment is under subheading 2021-07-24 05:28:10 +02:00
.eslintignore build: Move eslint file list to .eslintignore 2021-03-04 18:09:34 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-13 10:51:31 +00:00
.gitignore Remove extra blank line from .gitignore file 2020-08-31 15:24:56 +01:00
.gitreview Add .gitreview 2019-10-09 21:18:34 +00:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 10:53:01 +00:00
.stylelintrc.json Remove deprecated dt- classes 2021-03-23 12:39:34 +00:00
CODE_OF_CONDUCT.md build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
composer.json build: Updating dependencies 2021-07-22 16:29:04 +00:00
COPYING Add required files for an extension 2019-10-10 19:42:56 +01:00
extension.json Merge "Move reply link handling out of CommentController" 2021-07-01 17:21:13 +00:00
Gruntfile.js build: Move eslint file list to .eslintignore 2021-03-04 18:09:34 +00:00
package-lock.json build: Updating dependencies 2021-07-22 16:29:04 +00:00
package.json build: Updating npm dependencies 2021-05-09 16:41:13 +00:00