mediawiki-extensions-Echo/modules
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
..
api Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
controller Move var declarations inline 2024-03-05 22:39:09 +00:00
icons Add API module for sending notifications 2024-05-04 17:43:39 +03:00
mobile Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
model Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
nojs Remove unused CSS classes. 2023-11-16 10:46:23 +00:00
special Move var declarations inline 2024-03-05 22:39:09 +00:00
styles Merge "Fix borders of bundled notifications inside a bundle" 2024-01-02 13:00:26 +00:00
ui Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
.eslintrc.json Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
echo.mixins.less Fix opacity of focus styles 2023-02-02 17:06:55 +00:00
echo.variables.less styles: Replace 'mediawiki.ui/variables' call with skin variables 2023-04-04 01:26:11 -07:00
ext.echo.centralauth.js Initialize Echo when CentralAuth autologin replaces the user toolbar 2022-11-19 23:28:23 -08:00
ext.echo.init.js Replace jsduck with jsdoc 2024-04-30 15:29:06 +01:00
ext.echo.moment-hack.js build: Update linters 2019-12-12 11:20:49 +00:00
hooks.txt Echo should fire onInitialize event after rendering of badge 2022-09-22 08:49:44 -07:00