mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
ensure we allow self oneboxing of login required sites
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user