Commit graph

17 commits

Author SHA1 Message Date
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