Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Just a 4-character fix for redirect. #18

Merged
merged 1 commit into from

2 participants

@ttscoff

Bit.ly changed their API, too, so the single-link functionality is broken. I'll come up with something, but this fixes the multi-link functionality for now.

@aptonic
Owner

Ah, Thanks Brett. I did have a report that bit.ly was having issues. I have not looked into it yet.

@aptonic aptonic merged commit 6daaa63 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 27, 2012
  1. @ttscoff

    fix for url redirect change

    ttscoff authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  LinkSmasher.dropzone
View
2  LinkSmasher.dropzone
@@ -53,7 +53,7 @@ def bunch_links(text)
links = text.scan(/((?:http|https):\/\/[\w\-_]+(?:\.[\w\-_]+)+(?:[\w\-\.,@?^=%&:\/~\+#]*[\w\-\@^=%&\/~\+#])?)/m)
unless links.empty?
linkbunch = CGI.escape(links.join("\n"))
- url = "http://linkbun.ch/linkbunch.php?links=#{linkbunch}&bunch=Bunch&mode=api"
+ url = "http://www.linkbun.ch/linkbunch.php?links=#{linkbunch}&bunch=Bunch&mode=api"
res = Net::HTTP.get_response(URI.parse(url))
if res.code.to_i == 200
$dz.finish("#{links.length} links bunched")
Something went wrong with that request. Please try again.