Add guard clause for presence of processed_html (#5638) [deploy]
This commit is contained in:
parent
d82bbb874e
commit
52ada1450c
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ module ArticlesHelper
|
|||
end
|
||||
|
||||
def has_vid?(article)
|
||||
return if article.processed_html.blank?
|
||||
|
||||
article.processed_html.include?("youtube.com/embed/") || article.processed_html.include?("player.vimeo.com") || article.comments_blob.include?("youtube")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue