don't allow 1 pixel favicons

This commit is contained in:
Joe Lothan 2026-05-17 23:01:53 -04:00
parent b94427f200
commit ca06a91dc6

View file

@ -18,6 +18,8 @@ FROM (
WHERE i.scan_state = 'completed'
AND i.s3_key IS NOT NULL
AND i.content_type NOT IN ('image/svg+xml')
AND (i.width IS NULL OR i.width > 2)
AND (i.height IS NULL OR i.height > 2)
ORDER BY i.host_id,
CASE
WHEN i.width = i.height AND i.width IN (64, 48, 32, 16) THEN 0