Page MenuHomePhabricator

Add support for SpamBlacklist in cross-wiki upload dialog
Closed, ResolvedPublic

Description

We should add support for SpamBlacklist in the cross-wiki upload dialog. Currently uploads blocked by it look like this:

Event Timeline

Restricted Application added a project: Multimedia. · View Herald TranscriptJul 27 2016, 10:27 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

So, on second thought… we shouldn't have anything in core that relies on specific extensions. Rather, we should make SpamBlacklist use the same API output format as TitleBlacklist and AbuseFilter do, with an additional message property describing the message that has to be loaded and shown, and any parameters for it.

https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki/mediawiki.Upload.BookletLayout.js#L343

Examples:

Restricted Application added a subscriber: Matanya. · View Herald TranscriptJul 27 2016, 10:32 PM

Change 305208 had a related patch set uploaded (by Matthias Mullie):
Add 'message' property to API output

https://gerrit.wikimedia.org/r/305208

Change 305208 merged by jenkins-bot:
Add 'message' property to API output

https://gerrit.wikimedia.org/r/305208

matthiasmullie closed this task as Resolved.Aug 22 2016, 1:38 PM