mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
BUGFIX: failing avatar detection job
This commit is contained in:
parent
97ae43126b
commit
557dc76c07
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue