Skip to content

Instantly share code, notes, and snippets.

View ciencia's full-sized avatar

Jesús Martínez Novo ciencia

View GitHub Profile
@ciencia
ciencia / ext-SocialProfile-revert_d2c37ac.patch
Created April 23, 2025 21:31
MediaWiki ext-SocialProfile revert d2c37ac (breaks 1.39)
commit d2c37aceb43264839ab5594675bbd7ae065e992a
Author: Jack Phoenix <[email protected]>
Date: Fri Mar 28 15:39:25 2025 +0200
Fix "Deprecated: Use of string return from RemoveAvatar::getDescription() was deprecated in MediaWiki 1.41" on Special:SpecialPages on MW 1.43
Change-Id: I971a5fccdb8212ecb6619122a4652d67127bd8cd
diff --git b/UserProfile/includes/specials/SpecialRemoveAvatar.php a/UserProfile/includes/specials/SpecialRemoveAvatar.php
index 19ee4c3b..38872af6 100644
@ciencia
ciencia / ext-SocialProfile-revert_ac73d7.patch
Created April 12, 2025 10:19
MediaWiki ext-SocialProfile revert ac73d7 (breaks 1.39)
diff --git a/SocialProfileFileBackend.php b/SocialProfileFileBackend.php
index 648078d2..56121239 100644
--- a/SocialProfileFileBackend.php
+++ b/SocialProfileFileBackend.php
@@ -12,7 +12,6 @@
*/
use MediaWiki\MediaWikiServices;
-use MediaWiki\WikiMap\WikiMap;
@ciencia
ciencia / ext-CheckUser-nondestructiveupgrade-REL1_43.patch
Created March 6, 2025 22:28
MediaWiki ext-CheckUser updater no destructive updates REL1_43
diff --git a/src/HookHandler/SchemaChangesHandler.php b/src/HookHandler/SchemaChangesHandler.php
index 6e6575d5..9708eeb2 100644
--- a/src/HookHandler/SchemaChangesHandler.php
+++ b/src/HookHandler/SchemaChangesHandler.php
@@ -241,11 +241,11 @@ class SchemaChangesHandler implements LoadExtensionSchemaUpdatesHook, CheckUserQ
'cu_private_event',
"$base/$dbType/patch-cu_private_event-def.sql"
);
- $updater->dropExtensionField(
- 'cu_log',
@ciencia
ciencia / ext-AbuseFilter-nondestructiveupgrade-REL1_43.patch
Created March 5, 2025 23:01
MediaWiki ext-AbuseFilter updater no destructive updates REL1_43
diff --git a/includes/Hooks/Handlers/SchemaChangesHandler.php b/includes/Hooks/Handlers/SchemaChangesHandler.php
index 7be91ca1..50ce16dd 100644
--- a/includes/Hooks/Handlers/SchemaChangesHandler.php
+++ b/includes/Hooks/Handlers/SchemaChangesHandler.php
@@ -182,17 +182,17 @@ class SchemaChangesHandler implements LoadExtensionSchemaUpdatesHook {
MigrateActorsAF::class,
] );
- // 1.43
- $updater->addExtensionUpdate( [
@ciencia
ciencia / ext-OATHAuth-nondestructiveupgrade-REL1_43.patch
Last active March 5, 2025 22:48
MediaWiki ext-OATHAuth updater no destructive updates REL1_43
diff --git a/src/Hook/UpdateTables.php b/src/Hook/UpdateTables.php
index 5248990..342aab4 100644
--- a/src/Hook/UpdateTables.php
+++ b/src/Hook/UpdateTables.php
@@ -47,11 +47,14 @@ class UpdateTables implements LoadExtensionSchemaUpdatesHook {
}
// 1.41
- $updater->addExtensionUpdate( [
+ // Changed addExtensionUpdate to addExtensionUpdateOnVirtualDomain because T388058
@ciencia
ciencia / ext-ConfirmEdit-LogCaptcha-REL1_43.patch
Created February 23, 2025 17:09
MediaWiki extension ConfirmEdit log captcha challenge information (REL1_43)
diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php
index 10d42088..610a6bac 100644
--- a/SimpleCaptcha/SimpleCaptcha.php
+++ b/SimpleCaptcha/SimpleCaptcha.php
@@ -1072,13 +1072,13 @@ class SimpleCaptcha {
$info = $this->retrieveCaptcha( $index );
if ( $info ) {
if ( $this->keyMatch( $word, $info ) ) {
- $this->log( "passed" );
+ $this->log( "Captcha $index passed with word $word ({$info['question']})" );
@ciencia
ciencia / ext-TimedMediaHandler-autoplay-REL1_43.patch
Last active March 16, 2025 21:20
patch MediaWiki extension TimedMediaHandler autoplay videos REL1_43
diff --git a/extension.json b/extension.json
index e5780d22..2d72f6b3 100644
--- a/extension.json
+++ b/extension.json
@@ -127,10 +127,12 @@
"FileDeleteComplete": "main",
"FileUndeleteComplete": "main",
"FileUpload": "main",
+ "GetPreferences": "main",
"ImageOpenShowImageInlineBefore": "main",
@ciencia
ciencia / ext-TimedMediaHandler-alphawebm-REL1_43.patch
Created February 23, 2025 15:45
patch MediaWiki extension TimedMediaHandler enable alpha transcodes REL1_43
diff --git a/includes/WebVideoTranscode/WebVideoTranscodeJob.php b/includes/WebVideoTranscode/WebVideoTranscodeJob.php
index 162be036..466f502b 100644
--- a/includes/WebVideoTranscode/WebVideoTranscodeJob.php
+++ b/includes/WebVideoTranscode/WebVideoTranscodeJob.php
@@ -19,6 +19,7 @@ use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MainConfigNames;
use MediaWiki\Shell\CommandFactory;
use MediaWiki\Shell\Shell;
+use MediaWiki\TimedMediaHandler\Handlers\WebMHandler\WebMHandler;
use MediaWiki\TimedMediaHandler\HLS\Segmenter;
@ciencia
ciencia / core-updater-nodestructiveupdates-REL1_43.patch
Created February 23, 2025 15:07
MediaWiki core updater no destructive updates REL1_43
diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php
index 82a5b62950e..72239b9c1ba 100644
--- a/includes/installer/MysqlUpdater.php
+++ b/includes/installer/MysqlUpdater.php
@@ -142,13 +142,13 @@ class MysqlUpdater extends DatabaseUpdater {
// 1.41
[ 'addField', 'user', 'user_is_temp', 'patch-user-user_is_temp.sql' ],
- [ 'runMaintenance', MigrateRevisionCommentTemp::class ],
- [ 'dropTable', 'revision_comment_temp' ],
@ciencia
ciencia / ext-ConfirmEdit-LogCaptcha.patch
Created June 1, 2024 15:06
MediaWiki extension ConfirmEdit log captcha challenge information
--- SimpleCaptcha/SimpleCaptcha.php 2024-03-31 11:06:25.800541068 +0200
+++ SimpleCaptcha/SimpleCaptcha.php 2024-06-01 16:01:21.220020956 +0200
@@ -1096,13 +1096,13 @@
$info = $this->retrieveCaptcha( $index );
if ( $info ) {
if ( $this->keyMatch( $word, $info ) ) {
- $this->log( "passed" );
+ $this->log( "Captcha $index passed with word $word ({$info['question']})" );
$this->clearCaptcha( $index );
$this->captchaSolved = true;