Skip to content

1.4.0 - stable release (September 2019) for MediaWiki 1.27-1.32

Compare
Choose a tag to compare
@edwardspec edwardspec released this 26 Sep 14:36
· 882 commits to master since this release

Changes in Moderation 1.4.0 since Moderation 1.3.0

Features:

  • Support MediaWiki 1.32.
  • Support MediaWiki 1.33 (except MobileFrontend editor).
  • Support installation without update.php via web updater of MediaWiki.
  • When moderator manually resolves an edit conflict, resulting edit
    is now tagged as "merged edit of another user".
  • API: implement api.php?modaction=show
  • API: implement api.php?action=query&list=querypage&qppage=Moderation
  • Extension:Echo won't suppress "New changes are pending" notification.
  • (disabled by default) Allow moderator to modify text before approval.

Bugfixes:

  • modaction=show now correctly shows non-image uploads (e.g. OGG file).
  • Two clicks on "Mark as spammer" link no longer create 2 log entries.
  • Log entry of "moderation/approve" now records "revid" for uploads.
  • Module "jquery.cookie" is now loaded before "ext.moderation.notify".
  • Default value of mod_page2_namespace is now 0, not empty string.
  • modaction=approveall now works for User:0 (where "0" is username).
  • VisualEditor: fixed bug that prevented preloading of long wikitext.
  • AbuseFilter: fixed AbuseFilter not being called for moves in MW 1.33.

UI changes:

  • Notifications are no longer sent for edits in Spam folder.
  • Diffs on Special:Moderation are now properly colored in MW 1.31+.
  • If editor is anonymous, Whois link is now shown to non-checkusers.
  • Removed "external link" icon after Whois links on Special:Moderation.
  • CSS style of Special:Moderation is no longer lazy-loaded.
  • Log messages now use {{gender:}} syntax for non-English translations.
  • modaction=merge now warns if the change has already been merged.
  • Result of (un)blocking an already (un)blocked user is now "success".

Warnings fixed:

  • Replaced deprecated ParserOptions::setEditSection()
  • Replaced deprecated FileRepo::streamFile()
  • Replaced deprecated OutputPage::addWikiText()

Refactoring, performance optimizations:

  • Replaced wfMessage() with $context->msg() whenever possible.
  • Made some static methods non-static in NotifyModerator class.

Test results

This version is stable and has passed all unit tests (with MediaWiki 1.33, 1.31, 1.27),
as well as Selenium tests of MobileFrontend* (except in MediaWiki 1.33, see below) and VisualEditor**.

(*) NOTE: JavaScript editor of Extension:MobileFrontend for MediaWiki 1.33 was changed in a manner that made it incompatible with current code of Moderation. This issue doesn't have a quick fix (it would require a major rewrite of tonns of code), especially while maintaining backward compatibility with MediaWiki 1.27, so the fix is not included into this release (Moderation 1.4.0).
If you use MobileFrontend with MediaWiki >=1.33, you should use the newest version of Moderation, not this release.

(**) NOTE: Extension:VisualEditor itself is under active development and its internals often undergo breaking changes. If you use VisualEditor with MediaWiki >=1.33, you should use the newest version of Moderation, not this release.