discourse/lib/tasks/avatars.rake
Sam fa6f22dd39 Move letter avatars out of upload system
FIX: S3 issues around system avatars
FIX: reduced backup file size
2014-05-30 14:45:55 +10:00

12 lines
299 B
Ruby

desc "Refresh all avatars (download missing gravatars, refresh system)"
task "avatars:refresh" => :environment do
i = 0
puts "Refreshing avatars"
puts
User.find_each do |user|
user.refresh_avatar
user.user_avatar.update_system_avatar!
putc "." if (i+=1)%10 == 0
end
puts
end