Page MenuHomePhabricator

Deploy the Commons deletion notification bot on en.wikisource
Open, Needs TriagePublicFeature

Description

This ticket is for deploying the Commons deletion bot to work on en.wikisource.

The discussion was here: https://en.wikisource.org/wiki/Wikisource:Scriptorium#Request_that_English_Wikisource_be_added_to_Commons_deletion_notification_bot

No translation should be necessary.

Wikisource is a bit different than the other wikis and it may require some customization of the bot, but I'm not sure. The main use case we want to address is: A djvu or pdf file of a book gets nominated for deletion on Commons. It should then post a notice on the Index discussion page. For example, if File:Queen Mab (Shelley).djvu gets nominated for deletion on Commons, it should post a notice on https://en.wikisource.org/wiki/Index_talk:Queen_Mab_(Shelley).djvu.

Event Timeline

In it's current form it doesn't look like the bot would work as it is hardcoded to only work on files used in the main namespace of a project: https://github.com/wikimedia/CommonsNotifier/blob/5dfcfc5ba1564f20fc4801db28b13d2eb97fc286/post-notifs.py#L155

Maybe it could be modified to check for the Index namespace as well. Probably best not to worry about the Page namespace since 1 djvu file might be included in hundreds of Pages. The bot would also need to be configured to post to the Index_talk namespace.