scripts/reddit: fix gilded detection