mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:55:54 +08:00
FIX: Do not count youtube thumbnail when counting post images (#10049)
This commit is contained in:
parent
298393a5bc
commit
a2f80670e1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user