Commit graph

1029 commits

Author SHA1 Message Date
Translation updater bot ea5b968025 Localisation updates from https://translatewiki.net.
Change-Id: I47d19647d7b2d1d6a73ba4f3578f2a85caf243a2
2015-11-11 21:56:53 +01:00
Translation updater bot 0351acff99 Localisation updates from https://translatewiki.net.
Change-Id: I1fed6f2a7847c4c1528b7a33bf0f97ca254e82e6
2015-11-09 21:49:22 +01: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
Translation updater bot cd0d94e074 Localisation updates from https://translatewiki.net.
Change-Id: If9a401e0d848127fac534acdf4ea52535eea5bf6
2015-10-31 21:07:55 +01:00
Translation updater bot 46608a5a98 Localisation updates from https://translatewiki.net.
Change-Id: I99d30c011d219a4c5e2d21a4f3737b5541b9faf9
2015-10-28 21:56:28 +01:00
Translation updater bot 86f30175b1 Localisation updates from https://translatewiki.net.
Change-Id: Iee5275a553edd9c8116192be2172af9bfa94e4e1
2015-10-27 21:33:31 +01:00
Translation updater bot c4c68ba8ca Localisation updates from https://translatewiki.net.
Change-Id: Ie24033f62c4711dd0a632875f8d586b2cf6db209
2015-10-26 21:05:05 +01:00
jenkins-bot c1d392dcff Merge "Add ignoretitleblacklist to account creation API" 2015-10-26 17:57:48 +00:00
Translation updater bot 41c2b8bc79 Localisation updates from https://translatewiki.net.
Change-Id: I7a07c0da7169b0d639aeeb5b43066ba220e8acf8
2015-10-25 22:08:35 +01: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
Translation updater bot 8ade34abc4 Localisation updates from https://translatewiki.net.
Change-Id: Ie536072a7399b13b3ba8b2e58e4475f4322b2b87
2015-10-19 22:21:17 +02:00
Alex Monk ce99786864 Add ignoretitleblacklist to account creation API
Bug: T109517
Change-Id: Ie4d879f692cddc47d730d9aee9a9a534e9d22937
2015-10-18 15:19:20 +01:00
Translation updater bot b6e8b35480 Localisation updates from https://translatewiki.net.
Change-Id: I4a4fcd1c43375f9e1b50c4b279a393ce9566a002
2015-10-15 09:52:03 +02:00
Translation updater bot 006e68ae5b Localisation updates from https://translatewiki.net.
Change-Id: I1603b3b280e3c4d544e4cabdd281d9eaeecbe289
2015-10-12 21:06:43 +02:00
Kunal Mehta a8593d591e build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: Ied58af49e366c1772b9fc95f6c20cdfa5f33df13
2015-10-11 12:03:31 -04:00
Translation updater bot 3a32592305 Localisation updates from https://translatewiki.net.
Change-Id: I35e55ae9e9b4a3a447b8fb5f0b2ecd539ae224c1
2015-10-07 22:03:44 +02:00
Translation updater bot a42cc9e918 Localisation updates from https://translatewiki.net.
Change-Id: Ib270d874106ba4dcb6b39c17fc58a1727c54e492
2015-10-05 22:17:04 +02:00
Translation updater bot 4ab1791fb6 Localisation updates from https://translatewiki.net.
Change-Id: Ic9f360074b0be59657c34674f8ca842a8ded6ede
2015-09-30 22:11:55 +02:00
Translation updater bot b7ef1cbf76 Localisation updates from https://translatewiki.net.
Change-Id: I09a4ddda98547460bfb8ae7a89a9e9e6cd0c2ea8
2015-09-23 21:36:20 +02:00
jenkins-bot 8655c0c1b9 Merge "Revert "Avoid checking blacklists in isBlacklisted() for existing titles"" 2015-09-19 05:40:54 +00:00
Aaron Schulz 435179beb7 Revert "Avoid checking blacklists in isBlacklisted() for existing titles"
The tacked-on 'noedit' feature for filters requires such checks.

This reverts commit e85196ea53.

Change-Id: Ic816363cb78fd1691737de244a9bcb236533c2b5
2015-09-18 22:40:04 -07:00
jenkins-bot 09458b3422 Merge "Optimize the order of checks" 2015-09-15 11:55:15 +00:00
Aaron Schulz e85196ea53 Avoid checking blacklists in isBlacklisted() for existing titles
Change-Id: Ie44fcb500d28d7d911cb09c0db0947116345514c
2015-09-14 21:06:44 +00:00
Translation updater bot 20f0601b5c Localisation updates from https://translatewiki.net.
Change-Id: I8d169bb3ad6544d1f1f4e9f28536cfc8b6c4872d
2015-09-13 22:15:48 +02:00
Translation updater bot 6e79e6a983 Localisation updates from https://translatewiki.net.
Change-Id: Ide80fc2422bfb0352019bdb247780da42e22ae09
2015-09-12 01:12:52 +02:00
Ori Livneh a05d0abed9 Avoid loading the blacklist in TitleGetEditNotices hook handler
* Only show the override notice if the blacklist exemption is due to the user
  having the tboverride permission. (In other words, stop showing it for
  autoconfirmed users.)
* Only bother checking the blacklist in the uncommon case of the user actually
  having the tboverride permission.

Change-Id: I3277df8213586f31d7b7c43f72596319228b2730
2015-09-10 17:14:48 -07:00
Ori Livneh ec739362dd Optimize the order of checks
The `tboverride` permission is not widely granted, so checking for the user
right before checking whether the title is blacklisted optimizes for the
uncommon case.

Change-Id: Ie6ebdf8b9b87d70ebbf2929a5da325f964464e1d
2015-09-10 16:53:40 -07:00
Translation updater bot db070d28b0 Localisation updates from https://translatewiki.net.
Change-Id: I85c3a0207db5642ccd8cd81c653600a2807e6332
2015-09-04 21:54:11 +02:00
Translation updater bot 1d90b37eb9 Localisation updates from https://translatewiki.net.
Change-Id: Ib848bc60e08c47fc95d12204e9fea710f98de79c
2015-09-01 21:46:08 +02:00
Translation updater bot dde31a4f18 Localisation updates from https://translatewiki.net.
Change-Id: Ia2509f6a49ac25a45d5ba050db36efd908ad2a3e
2015-08-31 22:28:39 +02:00
Translation updater bot 6cb236643e Localisation updates from https://translatewiki.net.
Change-Id: Ic797989c1ce9d5ca07c1b755dfd7672c0d16baff
2015-08-15 21:49:20 +02:00
Translation updater bot 73e23255f7 Localisation updates from https://translatewiki.net.
Change-Id: I7ffcaeb5832866f4611ac3db322a7a6f0cf19c25
2015-08-04 23:18:03 +02:00
Translation updater bot 592d327c9c Localisation updates from https://translatewiki.net.
Change-Id: I7e32c7a6a11e3fa5cb9a86e121280be284acee3a
2015-07-28 21:51:06 +02:00
Translation updater bot b1ecf7b770 Localisation updates from https://translatewiki.net.
Change-Id: Ia4b5828e03f98b50f5b21424ecbad4326ad8e0ce
2015-07-22 22:17:54 +02:00
Translation updater bot ed8f56a453 Localisation updates from https://translatewiki.net.
Change-Id: I3a579948dea21f4561cb629960213e87c3f2d2fe
2015-07-20 21:58:37 +02:00
Translation updater bot b4431a02bb Localisation updates from https://translatewiki.net.
Change-Id: I3aa6d9031049c59a4df170d5501d818869076c1a
2015-07-19 21:38:58 +02:00
Translation updater bot e6992973af Localisation updates from https://translatewiki.net.
Change-Id: I94fdc916e45a476126c1a6b8f2836be8de1697b6
2015-07-18 22:02:53 +02:00
Translation updater bot 41bb5e75d8 Localisation updates from https://translatewiki.net.
Change-Id: I5c2b9cb83b37d684f7b8788d628b6e45822c3bdd
2015-07-12 21:51:53 +02: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
Translation updater bot 3fd8c88b0d Localisation updates from https://translatewiki.net.
Change-Id: Ic89cb796c22eaa478c6298f1bee2a5a31b419b4e
2015-07-07 22:11:40 +02:00
Translation updater bot 51709b2e0a Localisation updates from https://translatewiki.net.
Change-Id: I852e44caef1ab2e20ab09769ad6412fa052f101f
2015-07-03 20:47:47 +02:00
Translation updater bot 5bdb0459f2 Localisation updates from https://translatewiki.net.
Change-Id: I785c6faa3783df13dd32d5ec75d6947da614a649
2015-06-30 21:25:51 +02:00
Translation updater bot 217fc3cf18 Localisation updates from https://translatewiki.net.
Change-Id: I4529f2816df3edfce5be272c5aef1361fcea6423
2015-06-25 20:48:30 +02:00
Kunal Mehta d0cc7ced03 build: Configure banana-checker and jsonlint
Change-Id: I3fec2dd2a18fa5a7cdeef1b1e0a03ee11f2efe18
2015-06-19 22:31:17 -07:00
Translation updater bot 8bee26156d Localisation updates from https://translatewiki.net.
Change-Id: I5bea90afcfba69e339752c822011cf2fc2f3191c
2015-06-15 22:53:58 +02:00
Translation updater bot 3763532496 Localisation updates from https://translatewiki.net.
Change-Id: Ic4a3e324586b3bebadaa15d642b4772a6bfdc959
2015-06-14 21:16:52 +02:00
Translation updater bot a2b06620b5 Localisation updates from https://translatewiki.net.
Change-Id: I1ae6f219a8977aac14d45d9f4b2c2d470b5e650a
2015-06-12 21:55:59 +02:00
Kunal Mehta 95c1d76f00 Set manifest_version in extension.json
Bug: T100745
Change-Id: I657a8c2b1678174a4828b25cad129d7e7b0b680d
2015-05-28 20:39:27 -07:00
Translation updater bot 5d321c69b3 Localisation updates from https://translatewiki.net.
Change-Id: I06c4163013b14301c18e2695b1c29fdf59dbea8f
2015-05-27 22:32:00 +02:00