Commit graph

41 commits

Author SHA1 Message Date
James D. Forrester 3db06b08ce build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ic5d8c66a40d83169450dd664060e4ca5d4bd7f92
2024-08-22 18:24:11 -04:00
James D. Forrester 5f1d2eb5f5 extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: Ibf39a95210ea227909a0081c76829d60eaa5c8a3
2024-01-12 08:52:23 -05:00
Umherirrender fc369e9457 Use namespaced classes
This requires 1.42 for some new names

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I9a7df2df9407ef10d855bc19db247983682a5fc8
2024-01-05 19:28:12 +01:00
James D. Forrester 4eb23258e2 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I5fa16305724eb8dcbbcc489cbe88c04775e65907
2023-08-19 14:07:29 +08:00
Kunal Mehta 498738a54f Grant bots the "sboverride" userright by default
It's kind of useless to not give this right to anyone by default since
the whole point of introducing the userright was to use it.

Bots are a good place to start as they're usually pre-vetted and
normally just copying already existing links when being blocked
(e.g. archive bots).

Bug: T313107
Bug: T334344
Change-Id: Ib0ff42ed730d3fe5f5bb6c06f0a87b4959c1f989
2023-05-27 02:28:15 -04:00
Amir Sarabadani 1d8b60b7b9 Use core's externallinks lookup
Depends-On: I8ae9ef388957b0c04efa281f3bc3b5796bec17fe
Bug: T326251
Change-Id: Ic326c6ba4476093cb62a8d1ce82da44c32b7d1e1
2023-04-24 19:54:45 +02:00
Reedy 53e7ef575d Drop 'BaseBlacklist' class alias
Depends-On: I724f5f2352bee20a82697fe090e99832405d82af
Change-Id: Idfc003d5f34799398d3bfd28aa532893461b30c9
2022-11-29 14:35:54 +00:00
Umherirrender 06a90e4df8 Inject services into hook handler
Change-Id: Iba11bb4f4ca937abbc2b8e8864b008966890ae52
2022-10-08 22:00:11 +00:00
Martin Urbanec b94010960c Add sboverride to editprotected grant
This is where the `tboverride` right (similar to
`sboverride`) is. In an ideal world, all existing rights
should be assigned to a grant, so they can be used via
OAuth / bot passwords.

Change-Id: I6fd90d9ca27a93f5e8ecd8a8772b197288f46ae3
2022-07-15 20:17:41 +02:00
DannyS712 2a66c6b06f Add sboverride right to override the spam blacklist
Bug: T36928
Change-Id: I516dc68ec7a2dfaa82647feb67ec9bd264b8c380
2022-07-08 04:01:27 +00:00
Reedy 52bb0939d9 Namespace extension
Change-Id: Ie53302078d5f405eaa6caef3b7ef4daebf47d877
2022-04-08 13:41:20 +00:00
Roman Stolar 3451e9261a Replace deprecated Content::getParserOutput call to new one ContentRenderer::getParserOutput
Bug: T287158
Change-Id: I07f043deea33391302692f56604d9f641bc77916
2021-10-20 16:17:36 +03:00
Umherirrender 32ea1e7596 Use HookHandlers for core hooks
Bug: T271028
Depends-On: If7930a196272f782a6541fb0bc301e04e2d56f38
Change-Id: I7b5b6da058360bb60057f275234f972305ec0ea1
2021-04-15 21:02:35 +00:00
Reedy c2e57657f4 Use updated CheckUser Hooks class
Depends-On: I3f66b660f9d59c0e88b182c9b06ee8cec994348e
Change-Id: I79e12fcd328bda203013a438b7f9a472b351dd48
2021-02-11 19:31:42 +00:00
DannyS712 ad2f4fbc43 Update hooks to use PageSaveComplete
Update extension to require MW 1.35+, so the hook is available

Bug: T250566
Change-Id: I8dda65f1dcdeff68b884e83dafe9843d974bd3c4
2020-06-23 19:26:10 +00:00
Reedy 299aed9565 Remove _merge_strategy from value
Change-Id: Idcb5cb3539a9977b34492f55a141f342726325a2
2020-05-12 19:14:31 +01:00
Reedy 70999d0ea1 Convert to manifest_version 2
Bug: T252470
Change-Id: Ic1a1713da876981cb076a69b60ff00117e7b7c53
2020-05-12 01:40:39 +00:00
Umherirrender 1cdb1d25c8 Use MediaWikiServices::getMessageCache
This required MediaWiki 1.34

Change-Id: I86291dfaf83cdeeb96693979272bf7d4589d650f
2020-03-14 14:20:50 +01:00
Dan Andreescu a72c0f339a Abandon EventLogging instrumentation
The instrumentation attempted here has been implemented more correctly
by https://phabricator.wikimedia.org/T214706.  This change removes
instrumentation from this extension.  It should not affect much,
because emitting events was already disabled.

Bug: T162365
Change-Id: I8f02c62d41260a62b37a7738d69c039d2ce7562f
2019-07-15 16:52:17 -04:00
MarcoAurelio 8d5c1cbe34 Split 'apihelp-*' messages into a 'i18n/api/.*' folder
Bug: T189982
Bug: T214367
Change-Id: Ibd078dca05959fbeeb91330c1d400c525e65c2f3
2019-01-22 21:27:50 +00:00
Bartosz Dziewoński c47e43c234 Add mobile target to VE plugin modules
Bug: T213774
Change-Id: I6f235df35277180f7c265fc73cd43f1f649dbf4f
2019-01-15 01:05:52 +01:00
Ed Sanders 02ada1b4f2 Move in VE support code from the VE extension
Depends-On: I036ee32847cc3b25a1cc478247cfe54599781098
Change-Id: I1807a5d3d99ecab2bf4545a1bab3aa3f2ae64da8
2018-11-29 17:22:29 +00:00
Kunal Mehta d6f826bd1f Unbreak and modernize cleanup.php
Bumped MediaWiki requirement for usage of Maintenance::fatalError(),
which was introduced in 1.31.

Change-Id: I24446b93d47184907847ed825b42735a74fbddf0
2018-04-06 10:58:25 -07:00
Kunal Mehta ac0204b70a Move classes to includes/
Change-Id: Ica7abee84a4e17c530cb755687849a998068be70
2018-02-24 17:08:28 -08:00
Jayprakash12345 06f33d1142 Use SPDX 3.0 license identifier
Bug: T183858
Change-Id: I22c211068bc88ac02a6441a58e8d225eded86422
2018-01-29 05:58:22 +00:00
Kunal Mehta e62376620d Make spamblacklist log viewable by logged-in users by default
The main rationale for keeping this log private is to that scanners and things
don't see a huge list of spammy URLs and treat that website as spam itself.

There's no actual private content in here since the regular expressions are
public, so making it available to all users is fine.

Change-Id: I6da473b7cbac2c6fd507bde5c970d701e5ac249e
2018-01-21 21:37:46 -08:00
Reedy 4ef71c3d88 Remove pre-authmanager code
Bug: T178032
Change-Id: I25e46fb95c2132bc90f417de735d0fd145f3d05b
2017-10-12 01:41:06 +00:00
Matěj Suchánek 3d5392403b Escape url in Special:Log
When there is a "$1" in the url, it is treated like a message parameter
and replaced.

See https://www.wikidata.org/w/index.php?title=Special:Log&type=spamblacklist&page=Property:P2536.

Change-Id: Ia223a89e12c652a87d52a18c78e612b4b12871bc
2017-01-22 11:04:35 +00:00
Brad Jorsch d2e27163bf Add spamblacklistlog to viewrestrictedlogs grant
Bug: T149235
Depends-On: I8e2304e7b6f2af0c3d21d7d7390e4979b8eaee39
Change-Id: Icb7e404273d1fc957392d2a1dafbb0d33101e349
2016-10-26 15:28:24 -04:00
Kunal Mehta 637a7435ce Trigger Schema:ExternalLinksChange logging on page deletion
If a page is being deleted, use the ArticleDelete hook to queue a list
of URLs that are being "removed" from the page. The
ArticleDeleteComplete hook will trigger actually sending the logs - so
if something prevents the deletion, nothing will be logged.

Bug: T115119
Change-Id: I32e357bb88305a46251b05714a4ff75b75ae37aa
2016-09-29 14:14:01 +00:00
Kunal Mehta fb4dcf5565 Set $wgBlacklistSettings in extension.json
So people can actually override it without live hacking...

Change-Id: Id3b18b5b255fa1df321d34c4ce39849e1b545eec
2016-07-28 21:24:14 -07:00
Matthias Mullie dee68e3ab1 Filter file uploads
Bug: T134453
Change-Id: I140e8fec71e05db9e4625400e9a9dfe9a42d9635
2016-07-22 16:02:50 +02:00
Brad Jorsch 93df3ed07a Use EditFilterMergedContent instead of APIEditBeforeSave hook
It was only needed for MediaWiki prior to 1.25
(09a5febb7b024c0b6585141bb05cba13a642f3eb).
We no longer support those versions after
5d882775f6.

Bug: T137832
Change-Id: I97f6a3c20476f1a42e3fadc701df5870a30c790c
2016-06-23 17:54:09 +00:00
Gergő Tisza 303ba31639 Update for AuthManager
Needs I8b52ec8ddf494f23941807638f149f15b5e46b0c to
do anything useful.

Bug: T110467
Change-Id: Ifb6fea581a0d0ae8db46e82b6fa6d25239cf3d8e
2016-05-11 22:32:49 +00:00
jenkins-bot 211e88c042 Merge "Log URL changes to EventLogging if configured" 2016-05-02 15:49:29 +00:00
Kunal Mehta 5910bfd7ba Log URL changes to EventLogging if configured
If enabled, changes in URLs on a page will be logged to the
"ExternalLinkChange" schema. To avoid extra lookups, the diff of URLs is
calculated during the filter step of the SpamBlacklist, and stored in
the SpamBlacklist instance state until the post-save hook is called, and
then they are queued to go to EventLogging.

Bug: T115119
Change-Id: I9a5378dca5ab473961f9fe8f7a6d929dc6d32bba
2016-04-25 17:54:48 +02:00
Aaron Schulz 2acfb30bfc Pre-cache the link list for external link filters
* This works via plugging into ApiStashEdit.
* The query is relatively slow per performance.wikimedia.org/xenon/svgs/daily/2016-02-15.index.svgz.

Change-Id: I0ad5289324b5482db7e2276f58fc1ac140250d47
2016-02-18 14:36:42 +00:00
victorbarbu 789348941a Add license information
Bug: T123943
Change-Id: I1ca2c82474f56dfde209e462dc6a128625a96f07
2016-01-23 13:37:12 +02:00
Kunal Mehta e4462852d5 Add MediaWiki version requirement to extension.json
Change-Id: Ia7db16c0d48183c0365e871de4087ed45d8c7309
2015-09-23 08:52:22 -07:00
Kunal Mehta c5e5c1743b Set manifest_version in extension.json
Bug: T100745
Change-Id: Ia23b194b5a12a6b9d6c92740cbe13051640147b1
2015-05-28 20:44:56 -07:00
paladox 5d882775f6 Add extensions.json, empty PHP entry point, remove i18n shim
Bug: T88059
Change-Id: I730a2012609f7dfac3d49012ae14038e6bcac3ae
2015-05-20 19:19:31 +01:00