lib/onebox/engine/stack_exchange_onebox.rb in onebox-2.2.14 vs lib/onebox/engine/stack_exchange_onebox.rb in onebox-2.2.15
- old
+ new
@@ -23,10 +23,10 @@
def match
@match ||= @url.match(@@matcher)
end
def url
- domain = URI(@url).host
+ domain = uri.host
question_id = match[:question_id]
answer_id = match[:answer_id2] || match[:answer_id1]
if answer_id
"https://api.stackexchange.com/2.2/answers/#{answer_id}?site=#{domain}&filter=!.FjueITQdx6-Rq3Ue9PWG.QZ2WNdW"