Ed Sanders
93cac19268
build: Update linters
...
Change-Id: I73c774c0c10cb4ce90e4f51f7b7d3446591f3ee1
2020-04-07 11:13:11 +01:00
Translation updater bot
1cc6e884b6
Localisation updates from https://translatewiki.net .
...
Change-Id: I94eaa0a4d19b388cfcaa1e01768ac8b2fda81a71
2020-04-07 08:50:10 +02:00
libraryupgrader
26f4383330
build: Updating mkdirp to 0.5.3
...
* https://npmjs.com/advisories/1179
Change-Id: I11101062fa5b30b42d3bedc22a793c8720bd48da
2020-03-21 06:52:49 +00:00
Translation updater bot
9d9a652a99
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic6a1c4055b061f7121f1a28ff24b9dca4063843e
2020-03-20 08:25:06 +01:00
libraryupgrader
a8c3ee1150
build: Updating minimist to 1.2.5
...
* https://npmjs.com/advisories/1179
Change-Id: I12412a08c4b87790aff154ddc32c69b9ff994fba
2020-03-19 11:17:42 +00:00
jenkins-bot
5983f28cb9
Merge "Remove usage of Revision::loadFromPageId"
2020-03-19 00:59:55 +00:00
Timo Tijhof
423a6983bd
Remove use of internal $messageMemc variable
...
Same as I04a0e578d7 in TitleBlacklist extension.
Bug: T189966
Bug: T243175
Change-Id: Ifc14f2ee1f176d025d6d1c6158405277f20a1ac1
2020-03-18 17:14:41 +00:00
Translation updater bot
d3b10a3507
Localisation updates from https://translatewiki.net .
...
Change-Id: I48fe96140c39f6da2869d50ac0626596e4d3d74e
2020-03-17 10:26:06 +01:00
Umherirrender
1cdb1d25c8
Use MediaWikiServices::getMessageCache
...
This required MediaWiki 1.34
Change-Id: I86291dfaf83cdeeb96693979272bf7d4589d650f
2020-03-14 14:20:50 +01:00
libraryupgrader
f28db2b7c8
build: Updating acorn to 7.1.1
...
* https://npmjs.com/advisories/1488
Change-Id: I32b4e8498d63f39a28fc3d2e9390bc5c0bbc3697
2020-03-08 13:39:07 +00:00
Petr Pchelko
7043d212c7
Remove usage of Revision::loadFromPageId
...
Bug: T246284
Change-Id: Id4ec83cc0ac0685857064486697a7daed979ea69
2020-03-04 00:45:53 +00:00
Translation updater bot
b20cc8ed00
Localisation updates from https://translatewiki.net .
...
Change-Id: I9031158e369fe3a6924fc040af7c41c71fe59344
2020-02-19 08:26:20 +01:00
Translation updater bot
3d12e214ea
Localisation updates from https://translatewiki.net .
...
Change-Id: I8a39b90bccbd049c9425c68d173bd0994e3382fc
2020-02-17 08:47:41 +01:00
Translation updater bot
57a997f052
Localisation updates from https://translatewiki.net .
...
Change-Id: I2cd11a39512376e3a0ae8a83d822469508bd892d
2020-02-10 08:35:39 +01:00
libraryupgrader
4d1029117e
build: Updating composer dependencies
...
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1
Change-Id: I2930f838e914f9b3f7917e773038c197af019851
2020-01-30 12:24:37 +00:00
Translation updater bot
73bf2a1efb
Localisation updates from https://translatewiki.net .
...
Change-Id: If548d6efe5b8a8d2b19c657d64b632b69ddb30fd
2020-01-21 08:17:06 +01:00
Translation updater bot
bf0508a3f6
Localisation updates from https://translatewiki.net .
...
Change-Id: Id14050055cc69d0e8df31ff5dbc9aad7c755135a
2020-01-20 08:50:40 +01:00
libraryupgrader
c13f4d84a0
build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
...
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate
Additional changes:
* Also sorted "composer fix" command to run phpcbf last.
Change-Id: I168acfd973ed0bdb924f6aee523c934fe54213fa
2020-01-14 12:18:35 +00:00
Translation updater bot
9e79284dce
Localisation updates from https://translatewiki.net .
...
Change-Id: I78a234b07261388b107713f0976103d359582770
2020-01-13 09:12:00 +01:00
Umherirrender
2c01dfde72
build: Remove unneeded exclude from .eslintrc.json
...
This reverts parts of commit e39c731368
.
Change-Id: Iea4e445b17ede329f9c0b42db12b34d995816356
2020-01-08 19:28:46 +00:00
libraryupgrader
e39c731368
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.12.0 → 0.15.0
The following rules are failing and were disabled:
* brace-style
* camelcase
* eqeqeq
* max-len
* max-statements-per-line
* new-cap
* no-alert
* no-console
* no-constant-condition
* no-dupe-keys
* no-empty
* no-implicit-globals
* no-jquery/no-global-selector
* no-mixed-spaces-and-tabs
* no-redeclare
* no-tabs
* no-undef
* no-underscore-dangle
* no-unused-vars
* no-use-before-define
* no-useless-concat
* one-var
* valid-jsdoc
* vars-on-top
* grunt-eslint: 21.0.0 → 22.0.0
Additional changes:
* Added .eslintcache to .gitignore.
* Removing manual reportUnusedDisableDirectives for eslint.
Change-Id: If910b266ebd5d3aa1e485c6740b672eb44f82345
2020-01-08 06:54:14 +00:00
DannyS712
0e17b75bc9
Remove use of global $wgUser and a use of global $wgRequest
...
Bug: T241704
Change-Id: I816b94558156bb9fea314047702d18cd3f1dd3e9
2020-01-04 09:27:22 +00:00
Translation updater bot
a9bbd81b9e
Localisation updates from https://translatewiki.net .
...
Change-Id: I5944354acb8e37a7112866f1cfb0834980136000
2019-12-29 20:42:00 +01:00
libraryupgrader
2d3b9f1d61
build: Updating mediawiki/mediawiki-phan-config to 0.9.0
...
Change-Id: I56fbe7470e6dbc7ee2a2e381dc9e811db4b79224
2019-12-29 00:01:51 +00:00
Translation updater bot
1c9e062b9a
Localisation updates from https://translatewiki.net .
...
Change-Id: I26be6410cee5e12e8ad5ec41ae91b9cb05d77680
2019-12-16 12:15:23 +01:00
libraryupgrader
6c92a328c1
build: Updating grunt-banana-checker to 0.8.1
...
Additional changes:
* Added .eslintcache to .gitignore.
Change-Id: I023b8eeaf282c8ce08ad3ccbd6518f730cc965ea
2019-12-15 01:11:57 +00:00
Translation updater bot
b9f8141d41
Localisation updates from https://translatewiki.net .
...
Change-Id: Idb53b5e9c89b7236e7b0273cd6fa58c57c647bf3
2019-12-06 09:34:17 +01:00
Translation updater bot
f04ab4763b
Localisation updates from https://translatewiki.net .
...
Change-Id: I16dc60d05e20333773d9b9a563b114191d410ee6
2019-12-02 09:23:48 +01:00
Translation updater bot
d793a972d5
Localisation updates from https://translatewiki.net .
...
Change-Id: I99d4722aedda2b217e00bb106c424c0306fcbeb4
2019-11-11 15:33:24 +01:00
Bartosz Dziewoński
17313f9738
EmailBlacklist: Suppress warnings from invalid user-supplied regexes
...
They are suppressed identically in SpamBlacklist.php.
Bug: T64864
Change-Id: I808aa87a8c59ec63f7335236cab1fad6e5d8b86a
2019-11-07 23:08:16 +01:00
Translation updater bot
c7bfa9f02b
Localisation updates from https://translatewiki.net .
...
Change-Id: I092fc68fdbc2acbbef2f1cbe299cff0d55ec3605
2019-11-07 09:45:10 +01:00
Umherirrender
f287bf7950
build: Updating mediawiki/mediawiki-phan-config to 0.8.0
...
Bug: T235049
Change-Id: I326457e7779882bcc945753b9406605e76302e8a
2019-11-04 20:04:48 +01:00
Translation updater bot
ca702fa6e2
Localisation updates from https://translatewiki.net .
...
Change-Id: I06f740bde98b59719acb27f412c87159ec7de61f
2019-10-25 09:19:28 +02:00
Translation updater bot
2dde797a3a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie1f418c0ad0f1ae077465788ca34bc00cdfb8166
2019-10-16 20:41:54 +02:00
James D. Forrester
5a78869772
build: Upgrade mediawiki-codesniffer to v28.0.0
...
Change-Id: I2e639461d789d0b293d0f97da30a2fcf160804a6
2019-10-11 11:58:00 -07:00
Translation updater bot
1f229e6184
Localisation updates from https://translatewiki.net .
...
Change-Id: Iecfe9f14be7dbef900f5e4fe2578ae0761c0932e
2019-10-02 09:23:07 +02:00
daniel
9d55ccf86c
Remove backwards compatible code.
...
Per Krinkle's comment at
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SpamBlacklist/+/504797/1#message-fb539927b0a2241080960229b9dc2453f6fcd78f >, no backwards compatibility is needed.
Change-Id: Icbf005840d734c7d14a380197f2239a07ba53dbf
2019-09-27 10:52:33 +02:00
daniel
6d559a12fe
Support MCR database schema.
...
This maintains backwards compatibility with MW 1.31.
Cross-wiki loading functionality verified manually.
Bug: T233358
Change-Id: I53e218d8d268060b0b81c5c9bab24b7f5a37917a
2019-09-23 14:49:13 +02:00
jenkins-bot
3a63cfe6a4
Merge "Update README to remove mentions of outdated stuff"
2019-09-20 21:39:46 +00:00
jenkins-bot
915dc55dd2
Merge "Random cleanups"
2019-09-20 21:39:45 +00:00
Translation updater bot
beaa13a7a9
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic1ad9dfd0ea2493d5910cdba226692d120e63f92
2019-09-13 10:21:41 +02:00
Niklas Laxström
a24228bca1
Update README to remove mentions of outdated stuff
...
Mainly $wgSpamBlacklistFiles no longer exists.
Bug: T206264
Change-Id: Ia9d43fcf2ed777aa4796b9dd13c07b7a9ea264c4
2019-09-12 16:19:21 +02:00
Niklas Laxström
e74a0120a0
Random cleanups
...
Change-Id: I0748d1b2062cc8f81175e07c4785eb11e784fe28
2019-09-12 16:19:13 +02:00
Bartosz Dziewoński
5ddc45b62c
Actually return errors for action=edit API
...
Setting 'apiHookResult' results in a "successful" response; if we want
to report an error, we need to use ApiMessage. We already were doing
this for action=upload. Now our action=edit API responses will be
consistent with MediaWiki and other extensions, and will be able to
take advantage of errorformat=html.
Additionally, remove incorrect 'message' value from action=upload
output. It was anyway redundant to the normal error information.
To avoid user interface regressions in VisualEditor, the changes
I3b9c4fef (in VE) and I106dbd3c (in MediaWiki) should be merged first.
Before:
{
"edit": {
"spamblacklist": "example.com/test|example.net/test",
"result": "Failure"
}
}
After:
{
"errors": [
{
"code": "spamblacklist",
"data": {
"spamblacklist": {
"matches": [
"example.com/test",
"example.net/test"
]
}
},
"module": "edit",
"*": "The text you wanted to save was blocked ..."
}
],
"*": "See http://localhost:3080/w/api.php for API usage. ..."
}
For comparison, a 'readonly' error:
{
"errors": [
{
"code": "readonly",
"data": {
"readonlyreason": "foo bar"
},
"module": "main",
"*": "The wiki is currently in read-only mode."
}
],
"*": "See http://localhost:3080/w/api.php for API usage. ..."
}
Bug: T229539
Depends-On: I106dbd3cbdbf7082b1d1f1c1106ece6b19c22a86
Depends-On: I3b9c4fefc0869ef7999c21cef754434febd852ec
Change-Id: Id36aa6bdb8f873fe7deb8123a7fc774103721c01
2019-09-10 20:44:35 +00:00
Bartosz Dziewoński
2f1456c4e9
Remove backwards compatibility code for Revision::getQueryInfo()
...
Revision::getQueryInfo() was added in MediaWiki 1.31. We already
require that or later in our extension.json, so we can safely drop it.
The deprecated methods called by this code have been recently removed
(Id35544b879af1cd708f3efd303fce8d9a1b9eb02) and calling them is
causing Phan failures.
Change-Id: I474367d00c6d3917f1416023901132c0649b3163
2019-09-10 22:41:34 +02:00
Translation updater bot
70e47622ae
Localisation updates from https://translatewiki.net .
...
Change-Id: I4d9d14264b336fe71d21e7f096a1b7f7c765dd28
2019-09-04 10:15:21 +02:00
Translation updater bot
ea4ba07ae4
Localisation updates from https://translatewiki.net .
...
Change-Id: I8bd6ad577e2069e255301cbc9396be388b1b2133
2019-09-03 10:30:11 +02:00
Derick Alangi
b9c0f0709b
Avoid usage of deprecated $wgContLang global (dep in 1.32)
...
Change-Id: Ia87a464c22be764deacd699fb66f96a663ccfe7c
2019-09-02 09:49:39 +01:00
Bartosz Dziewoński
19c69f4158
Improve edit/upload error message integration
...
Compared to other extensions like AbuseFilter, SpamBlacklist's
integration with MediaWiki's error reporting was weird.
* When dealing with page editing, we returned two (or more)
separate messages, which would then be rendered in a list.
This looks weird, especially if the messages have fancy wrapper
boxes etc.
* When dealing with file upload, we returned incomplete
error message, not reporting the blacklisted link.
Now, in both cases, we return a single error message
containing all the details.
Change-Id: I4ca8e67e03726696a428093cc9fb547a6daa1492
2019-08-29 09:23:58 +00:00
libraryupgrader
466dfbd847
build: Updating eslint-utils to 1.4.2
...
* https://npmjs.com/advisories/1118
Additional changes:
* Added .eslintcache to .gitignore.
Change-Id: I4cc8586f225d1bee8ab6df8a464d696e4e40b220
2019-08-23 04:55:27 +00:00