FIX: Do not count youtube thumbnail when counting post images (#10049)

This commit is contained in:
David Taylor 2020-06-15 20:25:30 +01:00 committed by GitHub
parent 298393a5bc
commit a2f80670e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ class Post < ActiveRecord::Base
end
def self.white_listed_image_classes
@white_listed_image_classes ||= ['avatar', 'favicon', 'thumbnail', 'emoji']
@white_listed_image_classes ||= ['avatar', 'favicon', 'thumbnail', 'emoji', 'ytp-thumbnail-image']
end
def post_analyzer