Page MenuHomePhabricator

Hide bot's upload in Special:Newimages
Closed, ResolvedPublic

Description

Author: foenyx

Description:
Add a checkbox in Special:Newimages to hide file uploaded by bots (especially on
commons with MarketDataBot spamming ;)


Version: 1.4.x
Severity: enhancement

Details

Reference
bz1956

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:18 PM
bzimport set Reference to bz1956.
bzimport added a subscriber: Unknown Object (MLST).

especially for the dreadful Weather Bot on Commons

avarab wrote:

The query needed for getting the latest non-bot uploads is:

SELECT
img_size,img_name,img_user,ug_group,img_user_text,img_description,img_timestamp
FROM image LEFT OUTER JOIN user_groups ON img_user=ug_user AND ug_group='bot'
WHERE ug_group IS NULL LIMIT 49;

And the old query is:

SELECT img_size,img_name,img_user,img_user_text,img_description,img_timestamp
FROM image ORDER BY img_timestamp DESC LIMIT 49;

I can't be bothered to implement this now, maybe later.