Go to file
Siddharth VP e27f4937ff Add API module for sending notifications
Allows users to send notifications to themselves (T306211). For sending
notifications to others, a new permission is created (echo-create),
assigned only to bots by default. For now, only one user can be notified
in one API request.

If the email flag is set in the API params, the notification is also
sent as an email, provided the user hasn't disabled email notifications
for the "api-triggered" category.

This feature is behind a feature flag. Set $wgEchoEnableApiEvents = true
to use.

Adapted from If0267a38be7d454e3d284d30f93c93a828288dd7.
Co-authored-by: TheresNoTime <starling-ctr@wikimedia.org>

Bug: T58362
Bug: T306211
Change-Id: I94642bff5dcb075cb9db862206d59c19edad9fd1
2024-05-04 17:43:39 +03:00
.phan Use HookHandlers for UserMerge hook 2023-08-16 05:30:19 +00:00
i18n Add API module for sending notifications 2024-05-04 17:43:39 +03:00
images Remove all traces of cross-wiki beta feature 2019-04-17 22:18:13 -07:00
includes Add API module for sending notifications 2024-05-04 17:43:39 +03:00
maintenance Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
modules Add API module for sending notifications 2024-05-04 17:43:39 +03:00
scripts Use ::class for class name resolution 2022-06-16 22:36:46 +02:00
sql Drop schema updates from MW 1.33 and 1.34 2023-12-22 01:56:23 +00:00
tests Add API module for sending notifications 2024-05-04 17:43:39 +03:00
.eslintignore eslint: Use .eslintignore 2022-05-09 14:00:02 +01:00
.eslintrc.json Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
.gitignore Add DS_Store to gitignore 2021-07-13 13:58:44 -05:00
.gitreview Whoops, track not trace 2016-10-24 17:02:28 -07:00
.jsdoc.json Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
.mailmap Update Legoktm's mailmap entry 2021-04-11 19:15:52 -07:00
.phpcs.xml tests: Resolve phpunit filename deprecation errors 2023-08-12 21:07:15 +02:00
.stylelintrc.json stylelint: Enable selector-pseudo-element-colon-notation 2023-03-30 00:24:47 +02:00
.svgo.config.js build: Update SVGO to v3.0.2 & re-crush icons 2023-06-14 19:12:11 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 01:46:10 +00:00
composer.json build: Updating dependencies 2024-05-02 04:15:59 +00:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add aliases for Simplified & Traditional Chinese 2024-01-07 16:55:25 +08:00
extension.json Add API module for sending notifications 2024-05-04 17:43:39 +03:00
Gruntfile.js eslint: Use .eslintignore 2022-05-09 14:00:02 +01:00
package-lock.json build: Updating dependencies 2024-05-02 04:15:59 +00:00
package.json Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
quibble.yaml build: Add quibble.yaml and enable early warning bot feedback 2023-03-31 11:42:44 +02:00
README.md Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
RELEASE_NOTES BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary. 2016-07-27 17:00:05 -04:00
ServiceWiring.php Merge "Inject service RevisionStore into RevisionLocalCache" 2024-03-18 09:06:16 +00:00

The Echo extension provides an in-wiki notification system that can be used by other extensions.