BUGFIX: failing avatar detection job

This commit is contained in:
Sam 2014-05-12 15:50:44 +10:00
parent 97ae43126b
commit 557dc76c07

View file

@ -10,6 +10,7 @@ module Jobs
# Find a random sampling of users of trust level 1 or higher who don't have a custom avatar.
user_stats = UserStat.where('user_stats.has_custom_avatar = false AND users.trust_level > 0')
.references(:user)
.includes(:user)
.order("random()")
.limit(SiteSetting.max_daily_gravatar_crawls)