mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: posts would not auto rebake unless gravatar download was enabled
This commit is contained in:
@ -28,7 +28,7 @@ module Jobs
|
||||
TopicTimer.ensure_consistency!
|
||||
|
||||
# Forces rebake of old posts where needed, as long as no system avatars need updating
|
||||
unless UserAvatar.where("last_gravatar_download_attempt IS NULL").limit(1).first
|
||||
if !SiteSetting.automatically_download_gravatars || !UserAvatar.where("last_gravatar_download_attempt IS NULL").limit(1).first
|
||||
problems = Post.rebake_old(SiteSetting.rebake_old_posts_count)
|
||||
problems.each do |hash|
|
||||
post_id = hash[:post].id
|
||||
|
Reference in New Issue
Block a user