Commit graph

27 commits

Author SHA1 Message Date
James D. Forrester 762ef4c02b Drop use of wgParser, replaced in 1.32 and to be removed in 1.35
Bug: T160811
Change-Id: Iefb5557f6dd1c300515dc532485e906d57e2d37f
2019-10-28 20:03:37 +00:00
Bartosz Dziewoński cba4d461b9 VE: Update for errorformat=html
Update matchFunction() to match the new format of responses.

Remove custom error message from process(), it's worse than the default.

Bug: T229532
Depends-On: I3b9c4fefc0869ef7999c21cef754434febd852ec
Change-Id: Ibeae79c95557a7af699716c9d921f34c310bee6d
2019-08-22 00:38:02 +00:00
Derick Alangi 088bfe3028 TitleBlacklistHooks: Fix TitleBlacklist hooks to conform with MW
Also, cleanup various legacy behavior of hooks: as they return true. In
addition, objects are passed by reference by default.

I see more room for improvements, but will keep doing them in later change
sets.

Change-Id: I1ff3ec493a1d161cfbcfacf49b1af486a93b1052
2019-06-05 18:21:55 +00:00
Reedy 52358f2362 Update MediaWiki namespaced AtEase global functions
Change-Id: I90fbb959b5011a4fa06a766b2dbe91554bcf3c71
2019-02-13 02:31:11 +00:00
Bartosz Dziewoński 3c8be5e7c6 Add mobile target to VE plugin modules
Bug: T213774
Change-Id: I6441fb2278c76e66c68badb937c339f012fe7f5a
2019-01-15 01:06:00 +01:00
Ed Sanders d62cb11ea8 Bring in VE support
Bug: T211242
Depends-On: I9d7efbecfd954acff86f279f75aa80a9fcc10c89
Change-Id: Ibaf8a37f1aaef510923bde5ed9114f1f00fff461
2018-12-07 18:49:43 +00:00
zoranzoki21 bbec41c935 Move all apihelp translatable messages to separate files
Bug: T189982
Change-Id: I215dca32ed6bad6c4dafd0814b8cbb0887b3dd75
2018-11-25 05:28:45 +01:00
Jayprakash12345 a4d5a715a3 Remove deprecated dieUsageMsg methods
Bug: T189222
Change-Id: Ie026662aed64fab6d6e47d9eaff5c80dd36e0a79
2018-03-09 12:10:06 +00:00
Kunal Mehta 843434f64d Move classes into includes/
Change-Id: I24d0b37d49337efd35d12adf6adbfc403e81fa50
2018-02-15 14:35:32 -08:00
Jayprakash12345 3c8df981b8 Use SPDX 3.0 license identifier
Bug: T183858
Change-Id: I9529acdc4da032f853d64e5fbbe3aff46f050ccd
2018-01-29 05:52:37 +00:00
Umherirrender 54294b8fa5 Move TitleBlacklistEntry to own file
Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass

Change-Id: I75e2a3a959b7d7bbad2dca68c9c62ea10e948fb4
2017-12-21 22:24:59 +01:00
Reedy d89183d408 Re-instate "Remove pre-authmanager code"
This reverts commit ecf9bc4424.

Fixes copy paste fail from Id686d75e0a6b475a79f7f715791d867dc6fb400c,
should've been preauth, not primary

Change-Id: I8c5456af1ca3bf89c4fd1791b113ac3a16350989
2017-10-12 14:01:26 +00:00
EddieGP ecf9bc4424 Revert "Remove pre-authmanager code"
This reverts commit 259a236821.
It broke beta completely. Revert for now.

Bug: T178062
Change-Id: If4e09bb92e8c7769f0bd95bab20cb38aab19c283
2017-10-12 12:34:34 +00:00
Reedy 259a236821 Remove pre-authmanager code
Bug: T178033
Change-Id: Id686d75e0a6b475a79f7f715791d867dc6fb400c
2017-10-12 00:42:04 +00:00
Brad Jorsch 8ce9c9bc8a Add titleblacklistlog to viewrestrictedlogs grant
Bug: T149235
Depends-On: I8e2304e7b6f2af0c3d21d7d7390e4979b8eaee39
Change-Id: I0cff164c91128a9cc4b8700527ed1f4090a368a5
2016-10-26 15:28:34 -04:00
Reedy 496afa6548 Replace ArticleSaveComplete hook usage
Bug: T147558
Change-Id: I30f8e4d3c98a421036374245522bc0784ceafec3
2016-10-06 17:24:42 +01:00
Reedy 1ebec92f0a Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered.

Bug: T142120
Bug: T142121
Change-Id: Id86f4909e9c74c884ce33434717ad6993cbcc2bd
2016-08-05 17:38:12 +01:00
Bartosz Dziewoński 8437d98027 Add "targets": [ "desktop", "mobile" ] to 'mediawiki.api.titleblacklist' module
Bug: T97202
Change-Id: I6bffc6088f04527c0c5ca8ea8ec33de800582ee6
2016-08-03 18:56:33 +02:00
Gergő Tisza 17d3a9e313 Update for AuthManager
Bug: T110469
Change-Id: I9690d2fe6b172fcc85e1a8f7f91af21c6422d870
Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
2016-05-12 00:23:11 +00:00
Bartosz Dziewoński 97b433286d Return better error information via the API
* Use only a single error code 'titleblacklist-forbidden'
  to allow API users to easily identify TitleBlacklist errors.
* Return the internal code ('message') and the matching entry's text
  ('line') in machine-readable format, same as action=titleblacklist
  (depends on I1334ba21a2862973a9d8ff5be2c9bec06a82698b in MediaWiki).

This bumps the version requirement to 1.27, as older MediaWiki
versions would ignore the error in new format entirely.

Example API output change, for action=edit:

Before:
  {
      "error": {
          "code": "custom-message",
          "info": "TitleBlacklist prevents this title from being created",
          "*": "See http://localhost/w/api.php for API usage"
      }
  }
After:
  {
      "error": {
          "code": "titleblacklist-forbidden",
          "info": "TitleBlacklist prevents this title from being created",
          "message": "custom-message",
          "line": ".*test.* <errmsg=custom-message> # test rule",
          "*": "See http://localhost/w/api.php for API usage"
      }
  }

Bug: T115258
Change-Id: I42a0c5b0ea7e61088dd609b764dd7d1396c60cd5
2015-11-02 14:04:37 +00:00
jenkins-bot c1d392dcff Merge "Add ignoretitleblacklist to account creation API" 2015-10-26 17:57:48 +00:00
Bartosz Dziewoński 321cfac7aa extension.json: Correct name and URL
Change-Id: I49364f374efe6425cec433d3f2c8e59451ad0c65
2015-10-20 14:53:26 +02:00
Bartosz Dziewoński 811439b68e Remove support for MediaWiki 1.24 'AbortMove' hook
TitleBlacklist already only supports MediaWiki 1.25+ (see TitleBlacklist.php).

Change-Id: Iea583f31913e57c76d2c755d85deb65cfc935190
2015-10-20 14:50:43 +02:00
Alex Monk ce99786864 Add ignoretitleblacklist to account creation API
Bug: T109517
Change-Id: Ie4d879f692cddc47d730d9aee9a9a534e9d22937
2015-10-18 15:19:20 +01:00
Alex Monk e483b741af Add config option to disable blocking auto account creations
Bug: T35429
Change-Id: I83a80ba1c9f23962a8df5e8478b30c8b6e00eb70
2015-07-09 18:41:28 +00:00
Kunal Mehta 95c1d76f00 Set manifest_version in extension.json
Bug: T100745
Change-Id: I657a8c2b1678174a4828b25cad129d7e7b0b680d
2015-05-28 20:39:27 -07:00
Alex Monk d372b43a75 Use extension registration, replace constants with some reasonable values, kill i18n shim
Bug: T87982
Change-Id: I9ab045da49179618d7c5558b2b066fba2736ae6e
2015-05-19 17:23:14 +01:00