lib/onebox/engine/stack_exchange_onebox.rb in onebox-1.2.5 vs lib/onebox/engine/stack_exchange_onebox.rb in onebox-1.2.6
- old
+ new
@@ -16,10 +16,10 @@
def match
@match ||= @url.match(@@matcher)
end
def url
- domain = match[:subsubdomain] || match[:subdomain] || match[:domain]
+ domain = URI(@url).host
"http://api.stackexchange.com/2.1/questions/#{match[:question]}?site=#{domain}"
end
def data
return @data if @data