mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not download emojis in pull_hotlinked_images
This commit is contained in:
@@ -156,7 +156,10 @@ module Jobs
|
||||
|
||||
# If file is on the forum or CDN domain
|
||||
if Discourse.store.has_been_uploaded?(src) || src =~ /\A\/[^\/]/i
|
||||
# Return true if we can't find the upload in the db
|
||||
return false if src =~ /\/images\/emoji\//
|
||||
|
||||
# Someone could hotlink a file from a different site on the same CDN,
|
||||
# so check whether we have it in this database
|
||||
return !Upload.get_from_url(src)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user