ensure we allow self oneboxing of login required sites

This commit is contained in:
Régis Hanol
2016-11-03 22:48:32 +01:00
parent a9d7569dda
commit a655e4b092
5 changed files with 76 additions and 146 deletions

View File

@@ -62,9 +62,7 @@ module Oneboxer
onebox_links = doc.search("a.onebox")
if onebox_links.present?
onebox_links.each do |link|
if link['href'].present?
yield link['href'], link
end
yield(link['href'], link) if link['href'].present?
end
end