onebox 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/engine/whitelisted_generic_onebox.rb +2 -2
- data/lib/onebox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a922d9d2d6a67c8de1cff46db8632cd5da66fe8a
|
4
|
+
data.tar.gz: 23bac521ee3179cb0039ac053ac215ec4b4f48c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ca52b0f5d8b6d2c3ce925866008b5467452ecde1ece871dd639ff0ceb24147f618ba78bf77ae9ea70edab9cde400cd634dae43e48c34dd9a81e5d825f1d398
|
7
|
+
data.tar.gz: 634d5054cbdae59235d3092bf5eb329cfdc3db324f1570cc1564f513177bd6839a7f091b4cc059b6b46376c40dbbe95f2e846e6cd9ff79071647cffa7f9777c4
|
@@ -168,7 +168,7 @@ module Onebox
|
|
168
168
|
|
169
169
|
def placeholder_html
|
170
170
|
result = nil
|
171
|
-
result = image_html if data[:html] || data[:video] || photo_type?
|
171
|
+
result = image_html if (data[:html] && data[:html] =~ /iframe/) || data[:video] || photo_type?
|
172
172
|
result || to_html
|
173
173
|
end
|
174
174
|
|
@@ -183,7 +183,7 @@ module Onebox
|
|
183
183
|
data_hash[:type] = raw.type if raw.type
|
184
184
|
|
185
185
|
if raw.metadata && raw.metadata[:video] && raw.metadata[:video].first
|
186
|
-
data_hash[:video] = raw.metadata[:video].first
|
186
|
+
data_hash[:video] = raw.metadata[:video].first
|
187
187
|
end
|
188
188
|
|
189
189
|
data_hash
|
data/lib/onebox/version.rb
CHANGED