mediawiki-extensions-Echo/includes/Api
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
..
ApiCrossWiki.php And a few more namespaced classes... 2023-08-18 22:27:18 +01:00
ApiEchoArticleReminder.php Use namespaced classes 2023-12-11 16:39:00 +01:00
ApiEchoCreateEvent.php Add API module for sending notifications 2024-05-04 17:43:39 +03:00
ApiEchoMarkRead.php Namespace a few more classes 2023-08-18 21:48:15 +01:00
ApiEchoMarkSeen.php Namespace some more classes 2023-08-18 21:24:59 +01:00
ApiEchoMute.php Inject service LinkBatchFactory into ApiEchoMute 2024-03-17 19:13:44 +00:00
ApiEchoNotifications.php Use namespaced classes 2023-12-11 16:39:00 +01:00
ApiEchoUnreadNotificationPages.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00