lib/onebox/engine/pastebin_onebox.rb in onebox-2.2.8 vs lib/onebox/engine/pastebin_onebox.rb in onebox-2.2.9

- old
+ new

@@ -29,10 +29,10 @@ lines.size > MAX_LINES end def lines return @lines if @lines - response = Onebox::Helpers.fetch_response("http://pastebin.com/raw/#{paste_key}", 1) rescue "" + response = Onebox::Helpers.fetch_response("http://pastebin.com/raw/#{paste_key}", redirect_limit: 1) rescue "" @lines = response.split("\n") end def paste_key if uri.path =~ /\/raw\//